RSSHEUM0003 - 0101
Rev.1.00
Page 40
Renesas System Solution (Beijing) Co., Ltd, Shanghai Branch
Unit 207 AZIA Center, No.1233 Lujiazui Ring Road, Pudong District, Shanghai, China
Below notes introduces above software structure figure, based on which user can get known of
platform function software realization. The “ , ” in the C functions indicates corresponding function
prototype has one or more arguments.
Note:
1, The “ Init_0108() ” is the C function that initialize LCD and the variables of the LCD driver.
2, The “ wash_init() ” is the C function that initialize all the variables used during platform running.
3, The “ eeprom_read() ” is used to check platform power status and executes the power down
recovery function if necessary, which is realized by reading the flag in certain address of the
EEPROM, if the flag is “ 1 ”, it’s mean before current power on, there is an unexpected power down
happened and power down recovery function need to be executed; if the flag is “ 0 ”, it’s mean
current power on is an normal power on process.
The “ eeprom_write() ” is used to copy the content in certain RAM address of R8C 2A/2B to
EEPROM for saving the variables that is on using at the time of voltage detection interrupt occurs,
and especially, this function sets the power status flag to indicate an unexpected power down
happens. During power down recovery running, the saved variables will be write back to RAM of
R8C 2A/2B.
4, The “ key_judge ” function is used to handle user key pressing. In this function, the LCD display
flags and system status flags were set.
5, “ wash_detct ” is used in platform debugging mode, this function will detect the jumper 2 status
and decide whether or not the “Soak ” and “ Wash ” will be decreased.
6, LCD display function use 3 functions, “ menu_page_shift(, ,) ” is for screen page shifting;
“ lcd_flash(, , , , ) ” is for flashing display during parameter setting; “ process_flash(, , , , , ) ” is for
status display during washing program running, and these functions call relative LCD driver
functions to refresh the screen.
7, The “output() ” function refresh the LED and triac output at in every loop of washing program
running.
8, The “ INT2 () ” is used as AC frequency detection.
9, The “ Timer_RB () ” is
used for key scan and buzzer.
10, The “ cut_off_power ” is used to detect the unexpected power down situation.
Tel: (86-21) 6888-0556 Fax: (86-21) 6888-0559 Zip: 200120