User`s manual

PK2100
Software Reference s 5-9
void lc_init_timer1( uint count )
Initializes the timer reload register. The term count is expressed as
shown below for the 6.144-MHz clock.
count Frequency Period
192 1600 Hz 625 µs
384 800 Hz 1.25 ms
6144 50 Hz 20 ms
In other words, count = clock speed ¸ (20 × frequency).
int lc_kxget( byte mode )
Gets the current entry from the keypad buffer. If mode is 0, the byte
pointer is advanced. Otherwise, it remains at the current byte.
The function returns an integer representing which key was pressed.
Numbers from 011 are returned for a 2×6 keypad.
The function returns -1 if the buffer is empty.
void lc_kxinit()
Initializes the keypad. The virtual watchdogs are initialized if virtual
watchdogs are defined (see the virtual driver).
void lc_nl()
Performs a newline on the LCD.
void lc_pos( int line, int column )
Positions the cursor at line (0, 1, ...) and column (0, 1, 2, 3, ...).
void lc_printf( char* fmt, ... )
Perform a printf on the LCD. The function arguments are specified
as they are for the standard printf.
void lc_setbeep( int count )
Sounds the beeper for the number of 2560-Hz cycles specified by
count.