Home
Remote controller Platform user manual-v10
Contents
1. Y lt Y 1 X X 1 76 Ee chi no yes yes Page 14 Renesas System Solution Asia Pte Ltd Shanghai Pepresenative Office Unit 207 AZIA Center No133 Yincheng Rd n Pudong District Shanghai China Tel 021 68880556 Fax 021 68880559 Zip 200120 sTENESAS Everywhere you imagine 5 4 DATA INIT Subroutine DATA INIT Clear LCD initial to auto mode initial real time set flag initial real time and timer on off value initial temperature and fan speed return Page 15 Renesas System Solution Asia Pte Ltd Shanghai Pepresenative Office Unit 207 AZIA Center No133 Yincheng Rd n Pudong District Shanghai China Tel 021 68880556 Fax 021 68880559 Zip 200120 44 NE ESAS Everywhere you imagine 5 5 LCD ALLI Subroutine LCD ALL1 Load LCDO memory set F to LCD memory Y Y 1 yes LOAD LCD8 memory set F to LCD memory Y Y 1 LOAD LCD16 Memory set F to LCD memory Y Y 1 Renesas System Solution Asia Pte Ltd Shanghai Pepresenative Office Unit 207 AZIA Center No133 Yincheng Rd n Pudong District Shanghai China Tel 021 68880556 Fax 021 68880559 Zip 200120 sTENESAS Everywhere you imagine 5 6 KEY DECODE Subroutine KEY DECODE LOAD KEYDATA KEYDATA K1 yes Process TIME UP H KEYDATA K2 yes Process v a KEYDATA K4 yes Process keyboard lock unlock H 2 2 o o Process
2. This user s manual and product are copyrighted and all rights are reserved by Renesas No part of this user s manual all or part any be reproduced or duplicated in any form in hardcopy or machine readable form by any means available without Renesas s prior written consent Other Important Things to Keep in Mind 1 Circuitry and other examples described herein are meant merely to indicate the characteristics and performance of Renesas Technology s semiconductor products Renesas assumes no responsibility for any intellectual property claims or other problems that may result from applications based on the examples described herein 2 No license is granted by implication or otherwise under any patents or other rights of any third party or Renesas 3 MEDICAL APPLICATIONS Renesas Technology s products are not authorized for use in MEDICAL APPLICATIONS without the written consent of the appropriate officer of Renesas Technology Asia Sales company Such use includes but is not limited to use in life support systems Buyers of Renesas Technology s products are requested to notify the relevant Renesas Technology Asia Sales offices when planning to use the products in MEDICAL APPLICATIONS Limited Anticipation of Danger Renesas cannot anticipate every possible circumstance that might involve a potential hazard The warnings in this user s manual and on the product are therefore not all inclusive Therefore you must use the product saf
3. dry 0 1 1 heat 1 0 0 fan D4 D3 D2 D1 DO real time hour 0 0 00 O 00 hour D 00 0 0 1 01 hour 1 0 1 1 I 23 hour D5 D4 D3 D2 D1 DO real time minute 0 00 00 0O 0 minute E 0 00 00 1 1minute 1 11 0 1 1 59minute D4 D3 D2 D1 DO timer hour 0 0 00 O 00 hour F 0 0 00 1 01 hour 1 0 1 1 1 23 hour Page 10 Renesas System Solution Asia Pte Ltd Shanghai Pepresenative Office Unit 207 AZIA Center No133 Yincheng Rd n Pudong District Shanghai China Tel 021 68880556 Fax 021 68880559 Zip 200120 sTENESAS Everywhere you imagine D5 D4 D3 D2 D1 DO timer minute 0 00 00 0 0 minute G 000 00 1 minute 1 11 0 1 1 59 minute D1 DO timer status Q Q no timer on off Q timer off 0 timer on D2 power on off power on H 0 power off D3 sleep sleep no sleep D4 swing swing Q no swing I checksum A B C D E F G H low 8 bit ignore carry Page 11 Renesas System Solution Asia Pte Ltd Shanghai Pepresenative Office Unit 207 AZIA Center No133 Yincheng Rd n Pudong District Shanghai China Tel 021 68880556 Fax 02
4. Appendix G Using the ASM45 Cross Assembler ASMAS is the cross assembler fro the MELPS 4500 series It converts a source program written in assembly language into machine language This process is termed assembly ASMAS generates the following four types of files 1 Object files Referred to as HEX files 2 Symbol files Referred to as SYM files Command parameter S 3 Print files Referred to as PRN files Command parameter L 4 Tag files Referred to as TAG files Command parameter E ASMAS is started by entering the command at the MS DOS prompt An example of the Command is as follows C MTOOL PD45M gt ASM45 FILENAME S L C RET 1234567 1 MS DOS prompts 2 ASM45 3 Name of the source file to be assembled 4 Command parameter S specifies the generation of SYM file 5 Command parameter L specifies the generation of PRN file 6 Command parameter C specifies the generation of SYM file 7 Return Key Command Parameter Description All message suppressed A make memory Area information Output MAP file B execute Brn instruction optimize C output source line information output SYM file D define symbol use Ds1z1 s2 2 E make tag file and start editor use E or _Eeditor name L make list file output PRN file M define CPU name O select drive and directory for output use Oa Work P select directory drive of M345XXXX dat file use P work R output
5. K5 KE YE TAS ED yes setting real time i Process changing mode return KEYDATA K6 yes OF Page 17 Renesas System Solution Asia Pte Ltd Shanghai Pepresenative Office Unit 207 AZIA Center No133 Yincheng Rd n Pudong District Shanghai China Tel 021 68880556 Fax 021 68880559 Zip 200120 sTENESAS Everywhere you imagine 5 7 KEY DECODE Subroutine continue Process KEYDATA K7 es f changing fan speed ye no KEYDATA K8 yes Process swing no KEYDATA K9 da Process setting B i y time on off no KEYDATA K10 yes Process sleep no Process KEYDATA K11 yes power on off no Process 2 2 KEYDATA K127 yes changing mode Renesas System Solution Asia Pte Ltd Shanghai Pepresenative Office Unit 207 AZIA Center No133 Yincheng Rd n Pudong District Shanghai China Tel 021 68880556 Fax 021 68880559 Zip 200120 no Page 18 sTENESAS Everywhere you imagine 5 8 key down Subroutine Key down and key up are familiar with each other so the flowchart of key up you can refer key down s KEY DOWN KEY BOARD LOCKED POWER ON yes TIMER ON OFF Is it the first time to decode this key IS it in fan mode key down decode start set transmit flag delay flag le it in AUTO mode AUTO Temperature 1 RETURN Page 19 Renesas System Solution Asia Pte Ltd Shanghai Pepresenative Office
6. Unit 207 AZIA Center No133 Yincheng Rd n Pudong District Shanghai China Tel 021 68880556 Fax 021 68880559 Zip 200120 sTENESAS Everywhere you imagine 5 9 key down Subroutine continue Is itin COOL mode COOL temperature 1 process Is itin DRY mode yes DRY temperature 1 process HEAT temperature 1 process RETURN Page 20 Renesas System Solution Asia Pte Ltd Shanghai Pepresenative Office Unit 207 AZIA Center No133 Yincheng Rd n Pudong District Shanghai China Tel 021 68880556 Fax 021 68880559 Zip 200120 sTENESAS Everywhere you imagine 5 10 key mode Subroutine KEY MODE KEY BOARD LOCKED Is it the first time to decode this key key MODE decode start set transmit flag delay flag RETURN Renesas System Solution Asia Pte Ltd Shanghai Pepresenative Office Unit 207 AZIA Center No133 Yincheng Rd n Pudong District Shanghai China Tel 021 68880556 Fax 021 68880559 Zip 200120 ce 44 NE ESAS Everywhere you imagine 5 11 key fan Subroutine KEY FAN KEY BOARD LOCKED yes Is it the first time to decode this key iti Is it in AUTO mode ye 4 AUTO FAN 1 Process Is itin COOL mode yes COOL FAN 1 Process Return Renesas System Solution Asia Pte Ltd Shanghai Pepresenative Office Unit 207 AZIA Center No133 Yincheng Rd n Pudong District Shanghai China Tel 021 68880556
7. 1111b Set NOKEYF Store Ofh to KEYDATA RETURN USE RTS D1 21D2 1 Skip the key decode DO 0 delay 15us Call KEY COM If there is a double key input then go to NO KEY RETURN Page 42 Renesas System Solution Asia Pte Ltd Shanghai Pepresenative Office Unit 207 AZIA Center No133 Yincheng Rd n Pudong District Shanghai China Tel 021 68880556 Fax 021 68880559 Zip 200120 sTENESAS Everywhere you imagine 5 32 GET KEY Subroutine continue KEY COM Store D port value to B register Read port P1 s value Delay several us Read port P1 s value again To the P1 the new value is equal to the old value yes Y get the complement of the P1 s value no A 0 y o Page 43 Renesas System Solution Asia Pte Ltd Shanghai Pepresenative Office Unit 207 AZIA Center No133 Yincheng Rd n Pudong District Shanghai China Tel 021 68880556 Fax 021 68880559 Zip 200120 sTENESAS Everywhere you imagine 5 33 GET KEY Subroutine continue yes no RETURN NOKEYF 20 Store Ato E Store B to D Call KEY TAB Page 44 Renesas System Solution Asia Pte Ltd Shanghai Pepresenative Office Unit 207 AZIA Center No133 Yincheng Rd n Pudong District Shanghai China Tel 021 68880556 Fax 021 68880559 Zip 200120 sTENESAS Everywhere you imagine 5 34 GET KEY Subroutine con
8. 3 key function 1 power on off When we press it at power off mode It will go into power on mode vice versa Page 57 Renesas System Solution Asia Pte Ltd Shanghai Pepresenative Office Unit 207 AZIA Center No133 Yincheng Rd n Pudong District Shanghai China Tel 021 68880556 Fax 021 68880559 Zip 200120 sTENESAS Everywhere you imagine At power on there is operation mode temperature fan speed timer information on the LCD panel and send the IR signal At power off there is only real time to display then send IR signal 2 mode 1 Press this key to change operation mode 2 At power on mode it changes modes every time when you press this key and send the corresponding IR signal 3 The sequence of the mode change J Note lt Itis forbidden to adjust FAN SPEED at AUTO and DRY mode the FAN SPEED is fixed value but the TEMPERATURE CAN ADJUST At COOL and HEAT mode we can adjust both fan speed and temperature lt There is no temperature display at FAN mode 3 Adjust temperature key temperature up down 1 At power on mode it add minus 1 from temperature value every time when you press this key and send the corresponding IR signal 2 The sequence of temperature change is as follows Temperature up 18 gt 19 20 gt 32 Temperature down 32 gt 312330 318 S When the value of temperature is up down to 18 32 it will not change but IR signal is also sen
9. CPE please refer the user manual of the M34559T2 CPE Page 4 Renesas System Solution Asia Pte Ltd Shanghai Pepresenative Office Unit 207 AZIA Center No133 Yincheng Rd n Pudong District Shanghai China Tel 021 68880556 Fax 021 68880559 Zip 200120 sTENESAS Everywhere you imagine MCU power supply voltage selection switch 5 3 i i d LI J 34559T2 CP V A aA U JP1 to JP8 Port segment output selection switches SW2 Port subclock selection switch Figure 3 2 M34559T2 CPE Compact Emulator diagram 5 Remove the OZROM from the IC socket 6 Connect the M34559 Evaluation Board to the M34559T2 CPE compact emulator using the 52 Pin dual in line connectors 7 Connect the power supply to the compact emulator and evaluation board Note Emulator does not supply power to target system Refer to M34559T2 CPE User s Manual for more information 8 Connect the M34559 evaluation board to the Application Board 9 Set the Switches on the MCU board NO of Switches Setting of the Switches JP3 1 OFF JP3 2 OFF JP3 3 OFF JP3 4 OFF JP3 5 OFF JP3 6 OFF JP3 7 OFF JP3 8 OFF JP7 1 OFF JP7 2 OFF Figure 3 3 setting of the Switches at training board usage 10 Power ON the M34559T2 CPE compact emulator and M34559 Evaluation Board 11 After the compact emulator started up normally start the PDA5M debugger software When the PD45M starts the dialog as shown in
10. Fax 021 68880559 Zip 200120 no Page 22 sTENESAS Everywhere you imagine 5 12 key fan Subroutine continue 9 Is it in DRY mode yes DRY fan speed 1 process Is it in HEAT mode HEAT fan speed 1 process FAN fan speed 1 process Return Page 23 Renesas System Solution Asia Pte Ltd Shanghai Pepresenative Office Unit 207 AZIA Center No133 Yincheng Rd n Pudong District Shanghai China Tel 021 68880556 Fax 021 68880559 Zip 200120 sTENESAS Everywhere you imagine 5 13 key sleep Subroutine KEY SLEEP KEY BOARD LOCKED yes POWER ON no yes TIMER ON OFF yes Is it the first time to decode this key IS it in fan mode key sleep decode start set transmit flag delay flag Reset 7 hours count value Clear to 0 e Renesas System Solution Asia Pte Ltd Shanghai Pepresenative Office Unit 207 AZIA Center No133 Yincheng Rd n Pudong District Shanghai China Tel 021 68880556 Fax 021 68880559 Zip 200120 44 NE ESAS Everywhere you imagine 5 14 key clock Subroutine KEY CLOCK KEY BOARD LOCKED no yes no Is it the first time to decode this key yes yes yes no RESET TIMEF 2 0 BACK UP REAL TIME SET timef 1 TIMERF 20 TIMERONF 0 TIMEROFF 0 RESET 10 S COUNT RETURN Page 25 Renesas System Solution Asia Pte Ltd Shanghai Pepresenative Office Unit 207 AZIA Center N
11. No133 Yincheng Rd n Pudong District Shanghai China Tel 021 68880556 Fax 021 68880559 Zip 200120 sTENESAS Everywhere you imagine Page 53 Renesas System Solution Asia Pte Ltd Shanghai Pepresenative Office Unit 207 AZIA Center No133 Yincheng Rd n Pudong District Shanghai China Tel 021 68880556 Fax 021 68880559 Zip 200120 sTENESAS here vou imadine Ever Appendix A M34559 evaluation board MCU board SCH Remote Controller M34559 demo MCU board SWITCH2 1 When programming switch it on amp M34559G8 CONNECTOR TO CPE Main clock 40 PIUSEG2 39 PIOSEO20 Ay PUNSEGIS 37_PODSEOIS SWITCHES TO SELECT MCU SITUATION Programming or Normal Run Use on board OSC or not CONNECTOR TO APPBOARD Di 1N414 3V Power on off VDC1 Select Power supply 1 2 From DC power extra 2 3 From battery on board Power input From DC power Page 54 Renesas System Solution Asia Pte Ltd Shanghai Pepresenative Office Unit 207 AZIA Center No133 Yincheng Rd n Pudong District Shanghai China Zip 200120 Fax 021 68880559 021 68880556 Tel sTENESAS Everywhere you imagine Appendix B M34559 evaluation board application board SCH SOON c CIVOtdd V OWP 6SSp EW 19 01u0 20 uongorpe poaujur pieoqAoxN CDrvod NOW OX 90 LOINNOO poy Aes pareau 31 up poarrp s 12a 2as ad 8 auteur ACA SIAESIP AAEUS t Kox od omor propos punixs 1
12. The M34559 Evaluation Board MCU board can be operated either using 2 AAA batteries 1 5v 2 or DC power supply 3V 596 The power supply of the Application Board is supplied from The M34559 Evaluation Board MCU board it also can be supplied by external DC power 3 1 Demo Board Using QzZROM programmed with sample software 1 Connect the M34559 evaluation board to the Application Board 2 Insert the OZROM into the IC socket 3 Select the power Jumper JP5 and SET Switch S2 to ON 4 To set the jumper JP3 JP7 as follows figure 3 1 setting of the Switches 5 Power ON the M34559 Evaluation Board How to program the M34559 please refer the appendix E how to program the M34559 on board using EFP S2V NO of Switches Setting of the Switches JP3 1 OFF JP3 2 OFF JP3 3 OFF JP3 4 OFF JP3 5 ON JP3 6 ON JP3 7 ON JP3 8 ON JP7 1 OFF JP7 2 OFF Figure 3 1 setting of the Switches 3 2 Training Board Using M34559T2 CPE compact emulator sample software 1 Use a 4MHz oscillator on the oscillator circuit board for the compact emulator 2 Set MCU power supply voltage selection switch SW1 to select 3V 3 Set the port segment output selection switches to select SEG1s PO1 PO2 and P03 JP1 JP4 and select Plo P11 P12 and P13 JP5 JP8 respectively 4 Set the port sub clock selection switch SW2 to select XCIN Sub clock is used in the sample software How to set up the M34559T2
13. information please refer the source code 6 3 sig4559N ASM This part is to send a frame data and generate the header of signal The detail of the header and send data please refer the transmit format described in the section 4 In order to be convenient to concentrate on the function please find the comments as follows it is useful to understand the code skkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk Send a frame data skkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk woke ee ke ee he ke ehe he e hehe eee ee e ee e e e e e e e e e e e e e e e ek Generate the HEAD of command Refer to the signal wave Note HEAD 4 4ms HIGH 4 4ms LOW skkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk Page 48 Renesas System Solution Asia Pte Ltd Shanghai Pepresenative Office Unit 207 AZIA Center No133 Yincheng Rd n Pudong District Shanghai China Tel 021 68880556 Fax 021 68880559 Zip 200120 sTENESAS Everywhere you imagine 6 4 dis4559N ASM The display function mainly is divided into power on and power off status if power off only display real time and turn off the other function if power on it depends on different modes Page 49 Renesas System Solution Asia Pte Ltd Shanghai Pepresenative Office Unit 207 AZIA Center No133 Yincheng Rd n Pudong District Shanghai China Tel 021 68880556 Fax 021 68880559 Zip 200120 sTENESAS Everywhere you imagine 7 Platform PCB and Emulation 7 1 Platform PCB Layout Introductio
14. key status it is then deemed that a key is pressed released This is to minimize any chattering phenomena 4 2 LCD function The 4559 Group has an LCD controller driver When the voltage is applied to LCD power supply input pins Vrci Vrc3 and the data are set in timer control register W4 Timer LC LCD control register L1 L2 L3 C1 C2 and LCD RAM the LCD controller driver automatically reads the display data and controls the LCD display by setting duty and bias In this sample software 1 4 duty and 1 3 bias are selected for displaying data on the LCD up to 66 segments can be controlled to display 4 common signal output pins and 17 segments signal output pins are used to drive the LCD The LCD clock is determined by the Timer LC count source selection bit W42 Timer LC control Page 8 Renesas System Solution Asia Pte Ltd Shanghai Pepresenative Office Unit 207 AZIA Center No133 Yincheng Rd n Pudong District Shanghai China Tel 021 68880556 Fax 021 68880559 Zip 200120 sTENESAS Everywhere you imagine bit W43 and Timer LC The frequency F of the LCD clock used in the sample software is 64Hz using the bit 4 of Timer3 as the count source The formula is as shown below 1 1 REKE LC 1 2 434 The LCD power input pins Vrci Vrc3 are used as pins SEGo SEG2 Hence internal power VDD is used for the LCD power and internal dividing resistors are used The circuitry for external dividing resistors is avail
15. or timer off 3 Range of temperature setting 18 C 32 C 4 All function LCD display 5 24 hour real time display 2 keyword 1 reset mode D When you put battery into system at the first time plug DC power or press reset mode the evaluation board will go to the mode which we call reset mode 2 After going into reset mode LCD segment will all on for 2 second then turn off all segment of the LCD panel and display default settings The default settings as follows Function choice auto LCD display AUTO Temperature 24 Fan speed auto LCD display AUTO 4 After reset mode the evaluation board will be at power off mode there is only real time display 5 After reset mode there is no timer on or timer off 2 power off mode At power off mode there is only real time display 3 power on mode At power on mode there is operation mode fan speed temperature and real time information displayed on the LCD panel And we can adjust the value or mode If there is a valuable key pressed it will send corresponding IR signal 4 indication of sending IR signal The icon is the symbol of sending signal The icon is always on till the finishing of sending signal 5 delay to sending When temperature up down mode fan or timer on Off are pressed it 1s required to delay to send signal about 0 5 second But when we press special function key swing or power on off there is no delay
16. the first time yes reset relative timer set the first time flag 1 yes no Process timer add 1 at TIMERON MODE the procession is familar with adjusting time at time mode Unit 207 AZIA Center No133 Yincheng Rd n Pudong District Shanghai China Tel 021 68880556 Fax 021 68880559 Zip 200120 sTENESAS Everywhere you imagine 5 18 KEY TDOWN Subroutine continue Process timer add 1 the procession is familar with minus 1 from T MH at TIMEROFF MODE adjusting time at time mode minus 1 from T ML RETURN Jump to KEYCON RETURN CALL TIMECON CALL DISPLAY CALL GET KEY Is there a key input no call KEY DECODE Page 29 Renesas System Solution Asia Pte Ltd Shanghai Pepresenative Office Unit 207 AZIA Center No133 Yincheng Rd n Pudong District Shanghai China Tel 021 68880556 Fax 021 68880559 Zip 200120 44 NE ESAS Everywhere you imagine 5 19 KEY Timer Subroutine KEY TIMER yes no yes no SET KEYF RETURN yes no Di viro no Jump to KEY TIMER50 i Jump to no KEY_TIMER30 KEY_TIMER15 Page 30 Renesas System Solution Asia Pte Ltd Shanghai Pepresenative Office Unit 207 AZIA Center No133 Yincheng Rd n Pudong District Shanghai China Tel 021 68880556 Fax 021 68880559 Zip 200120 sTENESAS Everywhere you imagine 5 20 KEY TIMER Subroutine continue KEY TIMER15 S
17. 0559 Zip 200120 44 NE ESAS Everywhere you imagine 5 25 Display Subroutine DISPLAY no yes CLEAR ADJUSTF DISPPLAY START JUMP TO DISP SETTIME no JUMP TO DISP SETTIME JUMP TO DISP SETTIME JUMP TO n DISP SETTIME DISP TIME Page 36 Renesas System Solution Asia Pte Ltd Shanghai Pepresenative Office Unit 207 AZIA Center No133 Yincheng Rd n Pudong District Shanghai China Tel 021 68880556 Fax 021 68880559 Zip 200120 sTENESAS Everywhere you imagine 5 26 Display Subroutine continue 0 DISP TIME STAT DISP TIME STA20 Oo J 77 dv m gl lt 5 DO 9 mz or CK DHA 7g m Page 37 Renesas System Solution Asia Pte Ltd Shanghai Pepresenative Office Unit 207 AZIA Center No133 Yincheng Rd n Pudong District Shanghai China Tel 021 68880556 Fax 021 68880559 Zip 200120 sTENESAS Everywhere you imagine 5 27 Display Subroutine continue 1 us DISP POWERON DISP TEMP D o o o lt lt oO lt o DISP TEMP H no DISP TEMP F DISP TEMP CON DISP FAN gt l o Renesas System Solution Asia Pte Ltd Shanghai Pepresenative Office Unit 207 AZIA Center No133 Yincheng Rd n Pudong District Shanghai China Tel 021 68880556 Fax 021 68880559 Zip 200120 sTENESAS Everywhere you imagine 5 28 Display Subroutine con
18. 1 68880559 Zip 200120 sTENESAS Everywhere you imagine 5 Sample Software Flowchart 5 1 Initialization Subroutine START Disable interrupt Y Disable watchdog w ait for stable lt gt yes STCK f xin initial M and RG R Clear RAM initial LCD Y initial I O port disable interrupt initial interrupt Display all LCD segment Y Data initial r warm start main process begin include initialization of work environment and start value Page 12 Renesas System Solution Asia Pte Ltd Shanghai Pepresenative Office Unit 207 AZIA Center No133 Yincheng Rd n Pudong District Shanghai China Tel 021 68880556 Fax 021 68880559 Zip 200120 44 NE ESAS Everywhere you imagine 5 2 warm start Subroutine MAIN no update time count key scan TIMECOMO05 d is there a key pressed yes key decode Go to Power Down and process update time TIMECON Display LCD again check the keyboard pressed is there a key pressed yes TIMECON Dislpay Display LCD Page 13 Renesas System Solution Asia Pte Ltd Shanghai Pepresenative Office Unit 207 AZIA Center No133 Yincheng Rd n Pudong District Shanghai China Tel 021 68880556 Fax 021 68880559 Zip 200120 44 NESAS Everywhere you imagine 5 3 RAM clear Subroutine RAM CLEARO Clear RAM M DP 20
19. 9 remote controller platform 2 1 Outline of the function The upper picture is the system block diagram Keyboard 4x4 Keyboard expand use one key to expand LCD display 32x4 Manual reset Switch machine type h w setting LED display Infrared ray radiation PWM wave O606060 2 2 Key Features The evaluation package set can be used as a demo board or a training board 1 Demo board With the QZROM inserted in the IC socket on the M34559 evaluation board the user is able to demonstrate the M34559 LCD MCU as a LCD remote control With this transmitting unit and another receiving unit the MCU is M3823 the user is able to demonstrate the M34559 LCD MCU as a transmitter and the M3823 as a receiver 2 Training board By removing the OZROM and connecting the 52 pins dual in line connectors CPECON from the M34559 MCU board to the M34559T2 CPE compact emulator the evaluation package set allows the Page 2 Renesas System Solution Asia Pte Ltd Shanghai Pepresenative Office Unit 207 AZIA Center No133 Yincheng Rd n Pudong District Shanghai China Tel 021 68880556 Fax 021 68880559 Zip 200120 sTENESAS Everywhere you imagine user to have hands on experience on 4 bit software programming and software debugging The block diagram of the connection of the evaluation package set when used as training board is shown in Figure 2 1 M34559T2 CPE APLLICATION BOARD Figure 2 1 Block diagram of the connection of the evaluation pa
20. B88B HEER BM S W MCU STOP A Figure 3 6 PD45M Main Window 4 Software Information 4 1 Key Matrix A key matrix circuit consists of scan lines return lines and a key pad The simplified circuitry is as Shown in Figure 4 1 Port Do D3 are used as scan ports output and port Plo P13is used as return ports input A scan line is active when it is set to logic L Page 7 Renesas System Solution Asia Pte Ltd Shanghai Pepresenative Office Unit 207 AZIA Center No133 Yincheng Rd n Pudong District Shanghai China Tel 021 68880556 Fax 021 68880559 Zip 200120 sTENESAS Everywhere you imagine M34559 Figure 4 1 Key matrix circuit The following describe how the circuitry works No key press If there is no key press on the key matrix all return lines will have logic H Key 1 press If keyl is pressed Port P13 return line will read L when Port Do scan line output a L Therefore Port 1 is 0111 and Port ois L when Keyl is pressed A key pressed counter is used to count the number of key pressed in one key scan If the key pressed counter value is 0 no key is pressed If the key pressed counter value is more than 1 There is multiple key pressed Multiple key presses are not valid in the sample software The key scan is performed every 10msec If the key status remains low high for 20msec or more Meaning key scan is perform twice for the detection of a new
21. ET T10SF SETTIME and count register yes power on no Clear TIMERONF Set TIMERONF Set TIMEROFF Clear TIMEROFF Set TIMERF Set TIMERF RETURN KEY TIMER30 n yes ompare real time and timer value Is it equal Set TRANSF Clear TIMERONF Clear TIMEROFF Clear TIMERF yes RETURN no Set TRANSF Clear TIMERONF Clear TIMERF Page 31 Renesas System Solution Asia Pte Ltd Shanghai Pepresenative Office Unit 207 AZIA Center No133 Yincheng Rd n Pudong District Shanghai China Tel 021 68880556 Fax 021 68880559 Zip 200120 sTENESAS Everywhere you imagine 521 KEY TIMER Subroutine continue Backup the TIMEROF value RETURN KEY TIMER50 yes Set TRANSF Clear TIMERONF Clear TIMEROFF Clear TIMERF RETURN ompare real time and timer value Is it equal no Y Set TRANSF Clear TIMEROFF Clear TIMERF Backup the TIMEROF value RETURN Page 32 Renesas System Solution Asia Pte Ltd Shanghai Pepresenative Office Unit 207 AZIA Center No133 Yincheng Rd n Pudong District Shanghai China Tel 021 68880556 Fax 021 68880559 Zip 200120 44 NE ESAS Everywhere you imagine 5 22 time con Subroutine TIMECON TIMER 3 overflow yes CALL transmit IR signal set T250MSF Process time count register and flag TO5S DELAY T1S ADJUST T1S TIME DISP T10SL SETTIME AND SO ON update real time count register update ti
22. Figure 3 4 appears Select OK and the next dialog box as Page 5 Renesas System Solution Asia Pte Ltd Shanghai Pepresenative Office Unit 207 AZIA Center No133 Yincheng Rd n Pudong District Shanghai China Tel 021 68880556 Fax 021 68880559 Zip 200120 RENESAS Everywhere you imagine shown in Figure 3 5 appears Select the MCU file M34559G6 to be used Tnit ad Serial No 1 M34559 6BM008 Init File Refer TAB 1 32 g Font FixedSys Font Size 11 Resume AutoDownLoad Cancel Figure 3 4 Init Dialog Box1 FEE 0x MCU M34559G6 Init File Hefer TAB 1 32 Font System Font Size 14 Resume AutoDownLoad Cancel Next Hide M Next Hide Figure 3 5 Init Dialog Box2 Page 6 Renesas System Solution Asia Pte Ltd Shanghai Pepresenative Office Unit 207 AZIA Center No133 Yincheng Rd n Pudong District Shanghai China Tel 021 68880556 Fax 021 68880559 Zip 200120 sTENESAS Everywhere you imagine 12 The PD45M main window as shown in Figure 3 6 appears Select the option File Download Load Module from the window tool bar to download the HEX file of the sample software then you can debug 2 PD45M File Edit View Environ Debug Option Window Help Vi s 9 d m 9e swEwlaM Ga Program Window View SRC J DIS Address Mnemonic 6666 8881 C 8882 EE 8883 es 6664 8885 Ee 8886 Em 8887 8888 EET 8889 EEU 666A ES
23. GOOL DRY HEAT FAN Page 61 Renesas System Solution Asia Pte Ltd Shanghai Pepresenative Office Unit 207 AZIA Center No133 Yincheng Rd n Pudong District Shanghai China Tel 021 68880556 Fax 021 68880559 Zip 200120 sTENESAS Ever here vou imadine El kg or a 3 kem Rn PIN f2 13 M 5 16e 7 18 1 19 eof el COM A eC 60 SC SD JREN SO 1B 14 FLOCK Cove 2 G 6E SG SE pumo St 1G 1F TIMER cOM3 A 6B 6 SB SF leon Se ic COMA FAN C 6A HEAT SA DRY 3 jiw ID If we change it into M34559 memory type the truly table will change into like this Renesas remote controller LCD panel Truly Table Z 1 X Y 3 2 1 0 3 2 1 0 LCDO AUTO SPEED OFF ON LCD8 F 6B 6G 6C LCDI 2D 2E 2F 2A LCD9 6A 6F 6E 6D LCD2 COL 2C 2G 2B LCD10 HEAT 5B 5G 5C LCD3 3D 3E 3F 3A LCD11 5A 5F 6E 5D LCD4 MIDDLE 3C 3G 3B LCDI2 DRY COOL AUTO REN LCDS AD AE AF AA LCDI3 S3 S2 S1 SO LCD6 HIGH 4C 4G 4B LCD14 LOW 1C 1G 1B LCD7 FAN li LCDI5 1D IE IF 1A Z 1 x 2 Y 3 2 1 0 LCD16 TIMER CLOCK Page 62 Renesas System Solution Asia Pte Ltd Shanghai Pepresenative Office Unit 207 AZIA Center No133 Yincheng Rd n Pudong District Shanghai China Tel 021 68880556 Fax 021 68880559 Zip 200120 sTENESAS Everywhere you imagine
24. Shanghai Pepresenative Office Unit 207 AZIA Center No133 Yincheng Rd n Pudong District Shanghai China Tel 021 68880556 Fax 021 68880559 Zip 200120 sTENESAS Everywhere you imagine 6 Information of Sample Software Source Code The sample software source code is composed of 4 parts M34559N ASM Key4559N inc sig4559N inc dis4559N inc The following parts will descript the structure and information of the source code The software source code is in the CD_ROM at another folder not include in this application notes 6 1 M34559N ASM This part is the main part of the sample software source code It defines the RAM parameters display buffers and other variables At the same time it is composed of functions such as ram_clear data_initial key_decode time control transmit and transmit data process It achieves the most functions by call the functions written in M34559N asm Key4559N inc sig4559N inc dis4559N inc M34559N asm calls these functions by using include in ASM45 the code is as follows INCLUDE key4559N inc INCLUDE dis4559N inc INCLUDE sig4559N inc With this method it is easy to understand the structures of the source code and easy to update software 6 2 Key4559N ASM This part is the key scan code it achieves the keyboard scan and returns the key value which is pressed This function will check whether there are 2 keys pressed at the same if it is it will return no key input About the more
25. able on the evaluation board when VLC1 VLc pin function are to be used Refer to the 4559 Group datasheet for more information on LCD Function 4 3 Transmission Format The infra red remote control signal generated uses a carrier frequency of 38 KHz with 1 3 duty cycle The remote control signal is generated using Timer and Timer 2 The generated signal is output from C CNTR pin There is only one frame of signal transmitted with a valid key pressed The transmission format for the Transmission Program is described as follows Header Separator 9ms 4 5ms Bit 0 Bit 1 0 56ms 1 69ms END bit 0 56ms The transmission data consists of 9 bytes Each byte consists of byte H 4 bit and byte L 4 bit The representations of each byte are as follows User code A Function code B C D E F G H Checksum I Page 9 Renesas System Solution Asia Pte Ltd Shanghai Pepresenative Office Unit 207 AZIA Center No133 Yincheng Rd n Pudong District Shanghai China Tel 021 68880556 Fax 021 68880559 Zip 200120 sTENESAS Everywhere you imagine IR definition A Usercode lbyte 10001000 88 D3 D2 DI DO setting temperature 00 00 18 C B Jo 0 01 19 C 1 1 1 1 32 C D5 D4 fan speed high O middle Q0 1 low EN auto C D2 DI DO function 0 0 O auto 0 0 1 cold Q0 1 0
26. age 8 Renesas System Solution Asia Pte Ltd Shanghai Pepresenative Office Unit 207 AZIA Center No133 Yincheng Rd n Pudong District Shanghai China Tel 021 68880556 Fax 021 68880559 Zip 200120 sTENESAS Everywhere you imagine 5 20 KEY TIMER Subroutine continue eise sesse ses see ee ee ee ee ee ee ER ee nnne nnne 31 5 21 KEY TIMER Subroutine Continue iese sesse ses see ee ee ee ee ee ER ee ee ee ee ee 32 5 22 me con Subroutine eee ose ERGE SE Ee RE HUE eye gene Ge ER ER eu ee ek eos see SE MAE EE 33 5 23 TRANS ST Subroutine ee ee ee ee EE EE 34 5 24 TDATACON Subroutine oie tte SE er eu en eve eve ee ee ede bee ek ede oe UR 35 5 23 db EVEN IO UII RR 36 3 46 Display Subroutine ontiese tank a a EE ER BU bea ak Re EG os gedek GR RM 37 5 27 Display Subroutine continue T ke ese Gee ka Re DER ed ek SG 38 3 48 Display Subroutine continue 2 esse eek KAK NAR HE ABUS dek es RE 39 5 29 Display Subroutine continue 3 EENS KEES Ee ee AG Ru PODER Ene dek Se ER 40 3 20 Display Subroutine continue T iuo ees nna ESRA BOE n Ix HE eg EIUS re eke See 41 5 31 GET KEY Subroutine ees ss sesse ee ee ee ee ee ee Ee ee ee iiia tiet ee ee ee EE 42 5 32 GET KEY Subroutine continu iese sesse esse ee ee Re eene eene nnne nnn 43 5 33 GET KEY Subroutine continu iese sesse esse ee ee ee eene enne eene enn 44 5 34 GET KEY Subroutine continue iese sesse sesse ee ee ee een
27. al before using this evaluation board KEEP the user s manual handy for future reference Do not attempt to use the evaluation board until you fully understand its layout concept MCU Throughout this document the term MCU shall be defined as the Renesas 4500 series M34559 microcomputers Improvement Policy Renesas System Solutions Asia Pte Ltd hereafter collectively referred to as Renesas pursues a policy of continuing improvement in design performance and safety of this evaluation board Renesas reserves the right to change wholly or partially the specifications design user s manual and other documentation at any time without notice Target User of the Product This product should only be used by those who have carefully read and thoroughly understood the information as well as restrictions contained in the user s manual Do not attempt to use the product until you fully understand its mechanism Support Regarding support for the product no services are provided at all Page 4 Renesas System Solution Asia Pte Ltd Shanghai Pepresenative Office Unit 207 AZIA Center No133 Yincheng Rd n Pudong District Shanghai China Tel 021 68880556 Fax 021 68880559 Zip 200120 sTENESAS Everywhere you imagine LIMITED WARRANTY Renesas warrants its products to be manufactured in accordance with published specifications and free from defects in material and or workmanship The foregoing warranty does not c
28. bit macro expansion S make symbol file for symbolic debugger VER display version X execute crf45 Note For more detail information refer to the ASM45 User s manual Page 63 Renesas System Solution Asia Pte Ltd Shanghai Pepresenative Office Unit 207 AZIA Center No133 Yincheng Rd n Pudong District Shanghai China Tel 021 68880556 Fax 021 68880559 Zip 200120 sTENESAS Everywhere you imagine Revision History Page 64 Renesas System Solution Asia Pte Ltd Shanghai Pepresenative Office Unit 207 AZIA Center No133 Yincheng Rd n Pudong District Shanghai China Tel 021 68880556 Fax 021 68880559 Zip 200120 sTENESAS Everywhere you imagine Page 65 Renesas System Solution Asia Pte Ltd Shanghai Pepresenative Office Unit 207 AZIA Center No133 Yincheng Rd n Pudong District Shanghai China Tel 021 68880556 Fax 021 68880559 Zip 200120
29. ckage set when used as training board 2 3 Standard Circuitry The following standard circuitries are included on the M34559 Evaluation Board MCU board Main and real time clock circuit LCD power supply circuit Reset circuit Power supply circuit The following standard circuitries are included on Application Board the LCD panel key matrix circuitry the IR Transmitter circuit 2 4 Specifications Item Specifications Support MCU M34559 LCD MCU Emulator see note M34559T2 CPE Compact Emulator Interface Software see note ASMAS Cross assembler M3T PD45M debugger software hereafter referred to as PD45M Clock source Clock input from M34559 Evaluation Board if it is at emulation status please cut off the Clock source Power Supply DC input voltage 3V DC H 5 Or2 AAA batteries Power supply of the Application Board is supplied from the M34559 Evaluation Board MCU board it is also able to get Power source from DC power Plug Host PC see note IBM PC At Compatibles windows XP 2000 Me 98 Note The interface softwares are required when the M34559 Evaluation Board is used as a training board Page 3 Renesas System Solution Asia Pte Ltd Shanghai Pepresenative Office Unit 207 AZIA Center No133 Yincheng Rd n Pudong District Shanghai China Tel 021 68880556 Fax 021 68880559 Zip 200120 sTENESAS Everywhere you imagine 3 Quick Overview of How to Use the Board
30. d 4 After changing temperature there is about 0 5 second delay time to send IR signal 4 fan speed D Press this key to change fan speed 2 At power on mode it changes fan speed every time when you press this key and send the corresponding IR signal S The sequence of fan speed change is as follows AUTO MIDDLE HIGH LLL Page 58 Renesas System Solution Asia Pte Ltd Shanghai Pepresenative Office Unit 207 AZIA Center No133 Yincheng Rd n Pudong District Shanghai China Tel 021 68880556 Fax 021 68880559 Zip 200120 sTENESAS Everywhere you imagine The fan speed is fixed at AUTO and DRY mode 5 swing D At power on mode it will turn on swing function at the first time to press this key and send IR signal at the same time 2 At swing mode if we press this key once again it will turn off swing function and then send IR signal At power off mode it is useless 6 clock D if you press clock key at the first time the clock on the LCD panel will blink with 1 Hz at this situation we can adjust the real time by pressing timer up down key 2 If we have finished the new real time setting press the clock key to make sure S If there is over 10 second you don t press the clock key to make sure the setting of the real time will vanish it is of no effect 7 timer QD At power on mode it can set the timer off function at power off mode it can set timer on f
31. e eene nennen nnne nena 45 5 35 send data SubroUutine eee se Ee testy sobre bore eia rege ve ele esos ose estre ee dev IRI DUDUR 46 5 36 send data Subroutine continue esse see Re ER Re RR ener enn 47 6 Information or Sample Software Source CO aie eres tna ed Pres N Ee de Se Rg DEINER erbe e ou bee 48 6 1 M34559N ASM ie rete e pudo pad eed rea sese ven beste each GE GR ED ee ke se bk be IEEE ee se Ge DE 48 6 2 Key A 559N ASM m 48 6 3 SIPASSIN ASM ER N ancl AR AA EE EE Ee 48 6 4 dis4559N ASM NER 49 7 Platform PCB and Emullation ccccccsscccccesssssscececeeesssseeeececessssseececeeessaseeseseceeseeeseeeseeseeeesenses 50 7 1 Platform PCB Layout IHEOGOUCEON o irae Ge ge N ee N Go Se gene es De GN De 50 7 2 Emulation on Platform eee iere netten oe ee ee nena de E E E eN N ee ed eo 51 Page 9 Renesas System Solution Asia Pte Ltd Shanghai Pepresenative Office Unit 207 AZIA Center No133 Yincheng Rd n Pudong District Shanghai China Tel 021 68880556 Fax 021 68880559 Zip 200120 sTENESAS Everywhere you imagine Page 10 Renesas System Solution Asia Pte Ltd Shanghai Pepresenative Office Unit 207 AZIA Center No133 Yincheng Rd n Pudong District Shanghai China Tel 021 68880556 Fax 021 68880559 Zip 200120 sTENESAS Everywhere you imagine 1 Introduction v This platform is designed for remote controller S W validation and emulation it can be used as prototype board of actual remote control
32. ely at your own risk Page 6 Renesas System Solution Asia Pte Ltd Shanghai Pepresenative Office Unit 207 AZIA Center No133 Yincheng Rd n Pudong District Shanghai China Tel 021 68880556 Fax 021 68880559 Zip 200120 sTENESAS Everywhere you imagine PREFACE About this manual This user s manual is written for Renesas M34559 Evaluation board It describes different usage of the board operation specification of demo software and software source code Please use this user s manual to understanding on how to operate the evaluation board and also to self train on how to design M34559 software for LCD remote control and LCD front panel with IR receiver function Section 1 Introduction Gives an introduction to the configuration of this evaluation board Section 2 Platform specification Highlights the evaluation board features specifications and standard circuitry Section 3 Quick Overview of How to Use the Board Gives an overview on how to connect the board to the compact emulator and the Application board Section 4 Software Information Gives a brief description on the key matrix LCD function transmission format received data integrity check and peripherals used by the sample software Section 5 Sample Software Flowchart Gives the detail Sample Software flowchart Section 6 Information of Sample Software Source Code The sample software source code provided is to facilitate users to self train on software design for ke
33. esas System Solution Asia Pte Ltd Shanghai Pepresenative Office Unit 207 AZIA Center No133 Yincheng Rd n Pudong District Shanghai China Tel 021 68880556 Fax 021 68880559 Zip 200120 sTENESAS Everywhere you imagine Appendix E how to program the M34559 on board using EFP S2V M34559 is a QzZROM type MCU it can be programmed on the board using EFP S2V 1 hardware Before we program M34559 we need following hardware 1 PC installed with WinEP2 the version which can support M34559 please refer http www suisei co jp for the latest versions 2 The EFP S2V serial unit 3 M34559 remote controller evaluation board MCU board with the programmer lines which the evaluation board supplied 2 setting of the MCU board NO of Jumper Setting of the Jumper JP3 1 ON JP3 2 ON JP3 3 ON JP3 4 ON JP3 5 ON JP3 6 ON JP3 7 ON JP3 8 ON JP7 1 ON JP7 2 ON No need to turn on the power on the MCU board 3 how to use the program on the PC This part should refer the EFP S2V hand manual Page 60 Renesas System Solution Asia Pte Ltd Shanghai Pepresenative Office Unit 207 AZIA Center No133 Yincheng Rd n Pudong District Shanghai China Tel 021 68880556 Fax 021 68880559 Zip 200120 sTENESAS Everywhere you imagine Appendix F renesas air conditioner LCD panel truly table 1 The following picture is about the renesas air conditioner LCD panel RENESAS AUTO
34. ler Maybe you can create your own software which based on this sample software The function that this platform realized is introduced in the platform specification section Y Tosimulate other function modules that are not contained in this evaluation board you can add some buttons or modules by using the independent holes v M34559T2 CPE is used on this platform for the sample code emulation When using the platform be careful of the emulator MCU type and ESD The M34559 Evaluation board is designed to illustrate the built in peripherals of the M34559 LCD MCU The evaluation package set includes an M34559 MCU board application board Q ROM Programmed with Sample software and user s manual M34559 M34559 evaluation board evaluation board MCU BOARD APPLICATION BOARD T M34559G6 with sample code T User s Manual Figure 1 1 M34559 Evaluation Package Set This evaluation package set can be used for demonstration of the features of M34559 LCD MCU for Page 1 Renesas System Solution Asia Pte Ltd Shanghai Pepresenative Office Unit 207 AZIA Center No133 Yincheng Rd n Pudong District Shanghai China Tel 021 68880556 Fax 021 68880559 Zip 200120 sTENESAS Everywhere you imagine MCU promotion to white goods customers In addition it can be used by software engineer self training on 4 bit software programming 2 Platform specification p M M ee ee N Target board O M3455
35. meroff and timeron status RETURN Page 33 Renesas System Solution Asia Pte Ltd Shanghai Pepresenative Office Unit 207 AZIA Center No133 Yincheng Rd n Pudong District Shanghai China Tel 021 68880556 Fax 021 68880559 Zip 200120 44 NE ESAS Everywhere you imagine 5 23 TRANS ST Subroutine no yes 0 58 DELAY SEND FLAG 242 DISPLAY SEND FLAG TOKEN ON THE LCD PANEL CALL TDATACON CALL SEND DATA TURN OFF THE SEND FLAG TOKEN ON THE LCD PANEL RETURN Page 34 Renesas System Solution Asia Pte Ltd Shanghai Pepresenative Office Unit 207 AZIA Center No133 Yincheng Rd n Pudong District Shanghai China Tel 021 68880556 Fax 021 68880559 Zip 200120 44 NE ESAS Everywhere you imagine 5 24 TDATACON Subroutine TDATACON USER CODE PROCESS TDATAAH TDATAAL Y TEMPERATUR PROCESS TDATABH TDATABL FAN SPEED MODE PROCESS TDATACH TDATACL HOUR REAL TIME PROCESS TDATADH TDATADL MINUTE REAL TIME PROCESS TDATAEH TDATAEL Y HOUR TIMER PROCESS TDATAFH TDATAFL MINUTE TIMER PROCESS TDATAGH TDATAGL TIMER ON OFF POWER ON OFF SLEEP SWING PROCESS TDATAHH HL DO CHECKSUM OF THE TRANSMIT DATA TDATAIH IL t RETURN Page 35 Renesas System Solution Asia Pte Ltd Shanghai Pepresenative Office Unit 207 AZIA Center No133 Yincheng Rd n Pudong District Shanghai China Tel 021 68880556 Fax 021 6888
36. n Below figure shows the PCB Layout and illustrates out the location of the main parts FOWLER Battery D Choice JP 2 AAA APP POWER Vn Board _ KL LL ae EER s EO AS gt f E TETTTTTLEA In system IF to 4 4 program IF APP Board keyboard MCU IF To board emulator Page 50 Renesas System Solution Asia Pte Ltd Shanghai Pepresenative Office Unit 207 AZIA Center No133 Yincheng Rd n Pudong District Shanghai China Tel 021 68880556 Fax 021 68880559 Zip 200120 sTENESAS Everywhere you imagine 7 2 Emulation on Platform In this part the configuration of the emulation platform and the system connection are introduced 7 2 1 Emulation system configuration Note This figure is copied from M34559T2 CPE user s manual and modified Power supply for emulator if if not included Power supply cable USB interface cable Power supply for user system not included Host machine Compact emulator not included M24559T2 CPE 7 2 2 Actual emulation system Below figure shows the actual emulation platform connected with emulator M34559T2 CPE Page 51 Renesas System Solution Asia Pte Ltd Shanghai Pepresenative Office Unit 207 AZIA Center No133 Yincheng Rd n Pudong District Shanghai China Tel 021 68880556 Fax 021 68880559 Zip 200120 sTENESAS Everywhere you imagine Page 52 Renesas System Solution Asia Pte Ltd Shanghai Pepresenative Office Unit 207 AZIA Center
37. ne sesse Es EE ee EE ee ESE e ee ee SE ee cce ee ee PNE 13 5 3 RAM clear S broutine rrr EE SS SS GE ee ek SE EER ed GER GR e Ge SES Ee RN GE ek Gee eke N 14 54 DATA INIT Subroutine ecccccc ccccccncsecccscivedenszccscsccaeadecaesevependedescosssceavesaueaseveneessdensosensxels 15 55 LCD ALLI S broutine tr repente bee bebes esa esee es ev ba ea bene E ee Ge EER SE 16 5 6 KEY DECODE Subroutine eese ee ee ee ee ee ee essei eere oe 17 5 7 KEY DECODE Subroutine continue sesse ee ee ee se ee nennen 18 3 0 key down SUDEFODUTIG sos RR EE ek GE REIN Ud M GR eee ER N idE 19 3 9 kes down Subroutine POS tet REGS ia ale eR Rn NRI Ge E A E MINER 20 3 10 key made Subrouiiti T SR 21 5 11 key fan SPOS T GE 22 5 12 key fan Subroutine OOREEN EG Ee Ge EE DE EG Ge GEE 23 5 13 key sleep Subroutine RE EE H 24 5 14 key clock Recs ccs eae ane ttc ricer HM 25 5 15 KEY POWER Subroutine sesse ccc ee ee ee se ee ee ee ee ee nnn nnn eee estesa sess sane an 26 5 16 KEY LOCK Subroutine ccscscstsiccccccceccccssvevssvsssssseetepeccsecceubuesisdesosseveeseccecectaseseveseses 27 5 17 KEY TDOWN Subroutine 2 0 ssscccccccccccccssstetssssosseseveesececeetutenssssbosossessevsccedeotslasessesenes 28 5 18 KEY TDOWN Subroutine continue sesse ses se ee ee RR ee ee ee ee ee 29 5 19 KEY Timer Subro tine ere teret ee be ee ee de eee dedu ee Ge DS Debes 30 P
38. o133 Yincheng Rd n Pudong District Shanghai China Tel 021 68880556 Fax 021 68880559 Zip 200120 sTENESAS Everywhere you imagine 5 15 KEY POWER Subroutine KEY POWER yes no no SET FLAGS such as KEYF TO5SF_DELAY TIMERF TIMERONF TIMEROFF TRANSF CLEAR FLAGS SET FLAGS POW ERF POW ERF1 POW ERF POW ERF1 SLEEPF SW INGF SLEEPF SW INGF RETURN Renesas System Solution Asia Pte Ltd Shanghai Pepresenative Office Unit 207 AZIA Center No133 Yincheng Rd n Pudong District Shanghai China Tel 021 68880556 Fax 021 68880559 Zip 200120 Page 26 sTENESAS Everywhere you imagine 5 16 KEY LOCK Subroutine KEY LOCK nio SET KEYF CLEAR KEYLOCKF SET KEYLOCKF RETURN Renesas System Solution Asia Pte Ltd Shanghai Pepresenative Office Unit 207 AZIA Center No133 Yincheng Rd n Pudong District Shanghai China Tel 021 68880556 Fax 021 68880559 Zip 200120 Page 27 sTENESAS Everywhere you imagine 5 17 KEY TDOWN Subroutine KEY TDOWN keyboard lock yes b RETURN yes no no RETURN KEY TDOWN15 set the timer flags and count register when first time firstf 0 is it pressed at the first time yes reset relative timer set the first time flag 1 check T4SF_TUPDOW N 1 yes no Page 28 Renesas System Solution Asia Pte Ltd Shanghai Pepresenative Office KEY_TDOWN35 set the timer flags and count register is it pressed at
39. oduinf yoajas d ourqoeur osn puedxo oyo DOGS HEIN WO uem A OF OT O LA UOIS12A OES c WOES MY AT OS OAV ONIS p Page 55 Renesas System Solution Asia Pte Ltd Shanghai Pepresenative Office Unit 207 AZIA Center No133 Yincheng Rd n Pudong District Shanghai China Tel 021 68880556 Fax 021 68880559 Zip 200120 sTENESAS Everywhere you imagine Appendix C M34559 application board keyboard function The following table is about the function of the 4 4 keyboard it is useful when we use the platform in demo mode Key Function S1 Timer up to adjust real time or timer value S2 Clock access to adjust real time mode S3 Timer access to adjust timer value mode S5 Temperature up add temperature S6 Mode change modes S7 Sleep sleep mode S9 Timer down to adjust real time or timer value S10 Fan speed to adjust fan speed S11 Power on off 13 Key lock lock the keyboard or unlock S14 Key swing swing or not change S15 Temperature up minus temperature Renesas System Solution Asia Pte Ltd Shanghai Pepresenative Office Unit 207 AZIA Center No133 Yincheng Rd n Pudong District Shanghai China Tel 021 68880556 Fax 021 68880559 sTENESAS Everywhere you imagine Appendix D the sample software Specifications of M34559 application board 1 Overview of function 1 auto cool heat dry and fan mode 2 24 hour timer on
40. over damage caused by fair wear and tear abnormal store condition incorrect use accidental misuse abuse neglect corruption misapplication addition or modification or by the use with other hardware or software as the case may be with which the product is incompatible No warranty of fitness for a particular purpose is offered The user assumes the entire risk of using the product Any liability of Renesas is limited exclusively to the replacement of defective materials or workmanship DISCLAIMER RENESAS MAKES NO WARRANTIES EITHER EXPRESS OR IMPLIED ORAL OR WRITTEN EXCEPT AS PROVIDED HEREIN INCLUDING WITHOUT LIMITATION THEREOF WARRANTIES AS TO MARKETABILITY MECRCHANTABILITY FITNESS FOR ANY PARTICULAR PURPOSE OR USE OR AGAINST INFRINGEMENT OF ANY PATENT IN NO EVENT SHALL RENESAS BE LIABLE FOR ANY DIRECT INCIDENTAL OR CONSEQUENTIAL DAMAGES OF ANY NATURE OR LOSSES OR EXPENSES RESULTING FROM ANY DEFECTIVE PRODUCT THE USE OF ANY PRODUCT OR ITS DOCUMENTATION EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES EXCEPT AS EXPRESSLY STATED OTHERWISE IN THIS WARRANTY THIS PRODUCT IS SOLD AS IS AND YOU MUST ASSUME ALL RISK FOR THE USE AND RESULTS OBTAINED FROM THE PRODUCT Page 5 Renesas System Solution Asia Pte Ltd Shanghai Pepresenative Office Unit 207 AZIA Center No133 Yincheng Rd n Pudong District Shanghai China Tel 021 68880556 Fax 021 68880559 Zip 200120 sTENESAS Everywhere you imagine All Right Reserved
41. sTENESAS Everywhere you imagine M34559 Evaluation Board 4500 Series LCD MCU Microcomputer Development Environment System Page 1 Renesas System Solution Asia Pte Ltd Shanghai Pepresenative Office Unit 207 AZIA Center No133 Yincheng Rd n Pudong District Shanghai China Tel 021 68880556 Fax 021 68880559 Zip 200120 sTENESAS Everywhere you imagine Page 2 Renesas System Solution Asia Pte Ltd Shanghai Pepresenative Office Unit 207 AZIA Center No133 Yincheng Rd n Pudong District Shanghai China Tel 021 68880556 Fax 021 68880559 Zip 200120 sTENESAS Everywhere you imagine Remote controller Emulation Platform M34559G6 User s Manual RSS SH 1 Edition Published by Renesas System Solutions Asia Pte Ltd Date June 16 2006 Version 1 00 Copyright C Renesas System Solutions Asia Pte Ltd All rights reserved Trademarks a General All brand or product names used in this manual are trademarks or registered trademarks of their respective companies or organizations b Specific Microsoft Windows is registered trademarks of Microsoft Corporation Pentium is a registered trademark of Intel Page 3 Renesas System Solution Asia Pte Ltd Shanghai Pepresenative Office Unit 207 AZIA Center No133 Yincheng Rd n Pudong District Shanghai China Tel 021 68880556 Fax 021 68880559 Zip 200120 sTENESAS Everywhere you imagine IMPORTANT INFORMATION lt READ this user s manu
42. tinue KEY TAB Check table value A KEYDATA no Store the value to KEYDATA Store the value to KEYDATA RETURN RT RETURN RTS no NOKEYF 0 RETURN RT Page 45 Renesas System Solution Asia Pte Ltd Shanghai Pepresenative Office Unit 207 AZIA Center No133 Yincheng Rd n Pudong District Shanghai China Tel 021 68880556 Fax 021 68880559 Zip 200120 sTENESAS Everywhere you imagine 5 35 send data Subroutine Call Head send the transmit data from TDATAAL send loop05 send the head of the IR signal Check the bit 0 of transmit data 1 yes Call send 1bit Check the bit 1 of transmit data 1 yes Call send 1bit Check the bit 2 of transmit data 1 Call send Obit Call send Obit yes Call send 1bit Call send Obit Page 46 Renesas System Solution Asia Pte Ltd Shanghai Pepresenative Office Unit 207 AZIA Center No133 Yincheng Rd n Pudong District Shanghai China Tel 021 68880556 Fax 021 68880559 Zip 200120 sTENESAS Everywhere you imagine 5 36 send data Subroutine continue Check the bit 0 of transmit data 1 yes Call send 1bit for the next tranmit data buf The tranmit pointer to send data add 1 is it finished tranmitting no Call send Obit go to Send loop05 yes Clear send flag TRANSF send the end bit RETURN Page 47 Renesas System Solution Asia Pte Ltd
43. tinue 2 yes je DISP FAN A es 2 o lt DISP_FAN_C DISP_FAN_D DISP_FAN_H DISP_FAN_F 2 3 gt o o o lt x oO o DISP FAN CON DISP MODE od Page 39 Renesas System Solution Asia Pte Ltd Shanghai Pepresenative Office Unit 207 AZIA Center No133 Yincheng Rd n Pudong District Shanghai China Tel 021 68880556 Fax 021 68880559 Zip 200120 sTENESAS Everywhere you imagine 5 29 Display Subroutine continue 3 yes je no DISP MODE A yes dy DISP MODE C DISP MODE D DISP MODE H no y DISP MODE F DISP SW ING Page 40 Renesas System Solution Asia Pte Ltd Shanghai Pepresenative Office Unit 207 AZIA Center No133 Yincheng Rd n Pudong District Shanghai China Tel 021 68880556 Fax 021 68880559 Zip 200120 sTENESAS Everywhere you imagine 5 30 Display Subroutine continue 4 CO yes CLEAR SWING TOKEN IN LCD PANEL DISP SWING S DISP SLEEP yes DISP SLEEP OFF DISP SLEEP CON DISP LOCK Oo yes DISP LOCK ON DISP LOCK OFF RETURN Page 41 Renesas System Solution Asia Pte Ltd Shanghai Pepresenative Office Unit 207 AZIA Center No133 Yincheng Rd n Pudong District Shanghai China Tel 021 68880556 Fax 021 68880559 Zip 200120 44 NE ESAS Everywhere you imagine 5 31 GET KEY Subroutine GET KEY Read port 1 P1 P1
44. unction 2 If there is no timer mode then press this key the timer on or timer off will blink with 1 Hz at this time we can adjust the timer value by press timer up down key S If we have finished the new timer value setting press timer key to make sure 4 If the timer value is equal to real time it is of no effect it is useless to press timer key at this moment If there is over 10 second you don t press the timer key to make sure the setting of the timer value will vanish it is of no effect After setting the timer function we press timer key once again the timer function will be cancelled 8 timer up QD at clock mode to press this key once the real time value will add 1 minute it is pressed at the continuous and lasts more than 1 second it will change the time 4 times second 2 At timer mode it is the same as the clock mode do 9 timer down it is very similar with timer up key 10 sleep press this key at the first time the sleep mode have been setted there is a icon on the LCD panel will be turned on if we pressed it again we cancel the sleep function and the icon will be turned off 2 After sleep mode is set the system will go to power off 7 hours later 11 reset key Press this key to make system into reset mode 12 lock key This key will lock unlock the keyboard if the keyboard is locked any other key is not available Page 59 Ren
45. y matrixes remote control transmission remote control receiver and LCD Section 7 Platform PCB and Emulation Some picture about the PCB and emulation and comments Appendix ABCDEFG Some useful information about source code spec and tools Page 7 Renesas System Solution Asia Pte Ltd Shanghai Pepresenative Office Unit 207 AZIA Center No133 Yincheng Rd n Pudong District Shanghai China Tel 021 68880556 Fax 021 68880559 Zip 200120 sTENESAS Everywhere you imagine Contents I cnius RRRRRRRRRRRRRRRRRRRRRRMMEEEMEEEMMEEEMMMMEEMMMMMEEEMMMMMMMMMMMMMMMMMM 1 PANT Hun ODE Ie lo EE N N e EE EE NEE 2 2 1 Outline of the funcCHON sees ee ee ee Re ee ee ee ee 2 FAN Hun MO EL ER EL EE N NE EG 2 2 9 SERIA AEE EA eT OE Ri 3 24 Specie ale EE OE Re HE 3 3 Quick Overview of How to Use the Board esse ee Re RR Re Re Re Re ee Re nennen 4 3 1 Demo Board Using QZROM programmed with sample software 4 3 2 Training Board Using M34559T2 CPE compact emulator sample software 4 A Software Information erre te tte t SEE de ene EIER Ee ERR Ges ex veis gue eO eaa y pe eee da v SR PEE TES 7 4 T Key Matrix AS 7 42 LCD function OE EE ER ON OE Ed 8 4 5 Transmission Format siese 2 n EE eere Vee gee ee Ge Ee bee ee bera ese ed see bee ee ig 9 ie ee de dd ie ie EE ee EE EE M M DUM E 12 5 1 Initialization Subroutine esses AR Re ee Eins EEEN aped Ena EESE NEA Eh 12 5 2 warm start SUbroutim
Download Pdf Manuals
Related Search
Related Contents
USER MANUAL - PCS Outdoors Manual usuario イリジウム衛星携帯電話 AlphaPC 164LX Motherboard DIGITAL UNIX User`s Manual Burglar Alarm System B2 Protocolos de Consumo QSI 500 Series User Guide - Quantum Scientific Imaging Icom iM422 User's Manual Polk Audio MM6 User's Manual Dimplex (SP4) SP420 Indoor Fireplace User Manual Copyright © All rights reserved.
Failed to retrieve file