Home

User`s Manual - Renesas Electronics

image

Contents

1. P 36 3 26 Display Subroutine continue D un 37 3 27 Display Subroutine continue lu sa E FE EUER ka KA 38 5 28 Display Subroutine continue Dun 39 5 29 Display Subroutine continue ir 40 5 30 Display Subroutine continue A na 41 3 31 GET KEY Subro tine nn inn in ai AA aa 42 5 32 GET KEY Subroutine continue iese ee ees ese se ee ee ee ee ee Re ee ee ee ee 43 5 33 GET KEY Subroutine continue iese sesse ee ses ee ee Re ee ee ee ee ee ee ee 44 5 34 GET KEY Subroutine continue iese sesse sesse ee ee ee ee ee Re ee ee ee ee 45 5 35 send data Subroutine dui eg Ee ee Ge EE Re ES Ge Ge se ee Se 46 5 36 send data Subroutine continue ss see Re AR RA RA eene nnne enne 47 6 Information of Sample Software Source Code sie aan 48 6 1 E SAPE Vu 48 6 2 Key OUN ASM Mm 48 OPE SIN ASM EE E o AA a De N PP 48 OGE SI ER 49 7 Platform PCB and Emullation ccccccssccccccsssssscececcsesssseeeeceesssssseeceeseeseesesesesesaeeeseeeeeesseeeesenses 50 7 1 Platform PCB Layout InttOOUC EON ne cat 50 7 2 Emulation on Platform ss sssssssssssssecsssssssesessssssssssscesssssssssesessssssssssss 51 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 ENESAS 8 Renesas System Solution Asia Pte Ltd Shanghai Pepresenative Office Unit 207 AZIA Center No1
2. A KEYDATA no Store the value to KEYDATA Store the value to KEYDATA RETURN RT RETURN RTS no NOKEYF 0 RETURN RT 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 45 ENESAS 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 O 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 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 ENESAS 5 36 send_data Subroutine continue Check the bit O 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 47 Renesas System Solution Asia Pte Ltd Shanghai Pepresenative Office Unit 207 AZIA Center No133 Yincheng Rd n Pudong District Shanghai China Tel 021 688
3. Descriptions of circuits software and other related information in this document are provided only to illustrate the operation of semiconductor products and application examples You are fully responsible for the incorporation of these circuits software and information in the design of your equipment Renesas Electronics assumes no responsibility for any losses incurred by you or third parties arising from the use of these circuits software or information When exporting the products or technology described in this document you should comply with the applicable export control laws and regulations and follow the procedures required by such laws and regulations You should not use Renesas Electronics products or the technology described in this document for any purpose relating to military applications or use by the military including but not limited to the development of weapons of mass destruction Renesas Electronics products and technology may not be used for or incorporated into any products or systems whose manufacture use or sale is prohibited under any applicable domestic or foreign laws or regulations Renesas Electronics has used reasonable care in preparing the information included in this document but Renesas Electronics does not warrant that such information is error free Renesas Electronics assumes no liability whatsoever for any damages incurred by you resulting from errors in or omissions from the information included herein Re
4. 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 Timerl 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 Oms 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 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 ENESAS IR definition A User code Ibyte 10001000 88 D3 D2 DI DO setting temperature 0 0 0 0 A48 B loo 0 1 19C i d d dere 32 C o high 0 middle 0 1 low 0 0 auto 0 0 0 auto 0 0 1 cold 0 1 0 dry 0 1 1 heat 1 0 0 fan D4 D3 D2 D1 DO real time hour 0 0 0 0 O 00 hour D 0 0 0 0 1 01 hour 1 0 1 1 1 23 hour D5 D4 D3 D2 D1 DO
5. KEYDATA K12 yes li no 18 Renesas System Solution Asia Pte Ltd Shanghai Pepresenative Office ENESAS Process changing fan speed Process swing Process setting time on off Process sleep Process power on off Process changing mode return Unit 207 AZIA Center No133 Yincheng Rd n Pudong District Shanghai China Tel 021 68880556 Fax 021 68880559 Zip 200120 ENESAS 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 leap AUTO mode AUTO Temperature 1 RETURN 19 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 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 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 ENESAS 5 10 key mode
6. 021 68880556 Tel ENESAS 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 ENESAS 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 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 t
7. 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 Figure 3 4 appears Select OK and the next dialog box as 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 ENESAS shown in Figure 3 5 appears Select the MCU file M34559G6 to be used 1 M34559 6BM008 I EE TAB 1 32 Font system ize 14 Resume F AutoDownLoad Next Hide Figure 3 5 Init Dialog Box2 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 ENESAS 12 The PD45M main window as shown in Figure 3 6 appears Select the option File gt Download gt 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 313 slala mj je selle Ga Program Window View SRC J DIS fiddress Hnemonic 8888 0001 _ 808 9882 oes 9883 088 9984 888 8885 oes 0606 888 9887 088 9888 oes 0609 _ 888 BOBA 088 BOOB oes BM S W MCU STOP Ui Figure 3 6 PD45M Main Window 4
8. 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 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 ENESAS 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 key status 1t is then deemed that a key is pressed released This is to minimize any chattering phenomena 4 2 L
9. TDATAGL TIMER ON OFF POWER ON OFF SLEEP SWING PROCESS TDATAHH HL DO CHECKSUM OF THE TRANSMIT DATA TDATAIH IL Y RETURN 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 68880559 Zip 200120 ENESAS 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 no DISP_SETTIME DISP_TIME 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 ENESAS 5 26 Display Subroutine continue 0 DISP_TIME_STAT DISP_TIME_STA20 o 77 33 m gt zu 3 DO 9 mz AE cx J m 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 ENESAS 5 27 Display Subroutine continue 1 i9 DISP POWERON DISP TEMP D 5 gt gt o o o lt lt o o DISP TEMP H no DISP TEMP F DISP TEMP CON DISP FAN gt l Renesas System Solution Asia Pte Ltd Shanghai Pepresenative Office
10. and timer on off value initial temperature and fan speed return 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 ENESAS 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 ENESAS 5 6 KEY_DECODE Subroutine KEY_DECODE LOAD KEYDATA KEYDATA K1 yes Process TIME UP IE KEYDATA K2 yes Process Dee KEYDATA K4 yes Process keyboard lock unlock H 5 5 o o Process K5 RE ELIA SES yes setting real time N Process changing mode return KEYDATA K6 yes OF J 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 5 7 KEY_DECODE Subroutine continue KEYDATA K7 es pe no KEYDATA K8 yes no KEYDATA K9 yes no KEYDATA K10 yes N no KEYDATA K11 yes 0 no
11. 1 GET_KEY Subroutine GET_KEY Read port 1 P1 P1 1111b Set NOKEYF Store 0fh to KEYDATA RETURN USE RTS Skip the key decode D1 1D2 1 DO 0 delay 15us Call KEY COM If there is a double key input then go to NO KEY RETURN 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 ENESAS 5 32 GET_KEY Subroutine continue KEY_COM Store D port value to B register Read port P1 s value INPUT P1 Delay several us Read port P1 s value again To the P1 the new value is equal to the old value yes get the complement of the P1 s value y o L o n gt 6 o gt 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 ENESAS 5 33 GET_KEY Subroutine continue yes no RETURN NOKEYF 0 Store Ato E Store B to D Call KEY_TAB 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 ENESAS 5 34 GET_KEY Subroutine continue KEY_TAB Check table value
12. 16 PO1 P02 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 CPE please refer the user manual of the M34559T2 CPE 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 MCU power supply voltage selection switch M 34559T2 CPEB REV A o JP1 to JP8 Port segment output selection switches SW2 Port subclock selection switch Figure 3 2 M34559T2 CPE Compact Emulator diagram 5 Remove the QZROM 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
13. 200120 ENESAS Appendix A M34559 evaluation board MCU board SCH Remote Controller M34559 demo MCU board SWITCH When programming switch it on SWITCHES TO SELECT MCU SITUATION Programming or Normal Run Use on board OSC or not CONNECTOR TO APPBOARD DI 1N4148 CONNECTOR TO CPE Sekci Power ly ci 1 2 From DC power extra XIN 2 3 From battery on board 15pF E m From DC power 54 Zip 200120 Fax 021 68880559 Unit 207 AZIA Center No133 Yincheng Rd n Pudong District Shanghai China 021 68880556 Renesas System Solution Asia Pte Ltd Shanghai Pepresenative Office Tel ENESAS Appendix B M34559 evaluation board application board SCH Remote Controller M34559 demo APPBOARD Notes l infrared radioation 4 enable disable VDE 2 machine type seclect 5 directly drive LED 3 keyboard JP 2 DI i D 50 P3S SEGSI 49 P32 SEG3O 48 P31 5E029 47 P3YSEG28 45 P22 SEG26 44 P21 SEG2S 43 P20 SEG2A 42 PIS SEG23 41 P12 5EG22 40 PIUSEGZI 39 PIO SEG20 38 P G SEGIS 37 PRSEGIS OOMS 18 SEGO VLC39 SEGIVICZ0 SEG2VICRI SEG3 SEGA SEGS SEGO SEG CONNECTORTO MCU BOARD 6 Key expand use machine type select jumper Select machine ty po key expand Qi 2N3904 Number version V1 0 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
14. 33 Yincheng Rd n Pudong District Shanghai China Tel 021 68880556 Fax 021 68880559 Zip 200120 ENESAS 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 controller 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 To simulate 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 QzZROM Programmed with Sample software and user s manual M34559 M34559 evaluation board evaluation board MCU BOARD APPLICATION BOARD M34559G6 with sample code 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 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 ENESAS MCU pro
15. 559 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 LCDs C 6B 6G 6C LCDI 2D 2E 2F 2A LCD9 6A 6F 6E 6D LCD2 COL 2C 2G 2B LCDIO HEAT 5B 5G 5C LCD3 3D 3E 3F 3A LCDI1 5A SF 6E 5D LCD4 MIDDLE 3C 3G 3B LCD12 DRY COOL AUTOI REN LCDS AD AE AF 4A LCDI3 S3 S2 S1 so LCD6 HIGH 4C 4G 4B LCD14 LOW IC IG 1B LCD7 FAN A li LCDIS 1D IE IF 1A Z 1 x 2 Y 3 2 1 0 LCD16 TIMER CLOCK 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 ENESAS 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
16. 80556 Fax 021 68880559 Zip 200120 441 NESAS 6 Information of Sample Software Source Code The sample software source code is composed of 4 parts 4 M34559N ASM 4 Key4559N inc 4 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 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 t
17. CD function The 4559 Group has an LCD controller driver When the voltage is applied to LCD power supply input pins VLci VLc3 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 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 ENESAS 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 X x LC 1 2 434 The LCD power input pins VLci VLc3 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 available on the evaluation board when VLCI VLcs pin function are to be used Refer to the 4559 Group datasheet for more information on LCD Function
18. No133 Yincheng Rd n Pudong District Shanghai China Tel 021 68880556 Fax 021 68880559 Zip 200120 ENESAS 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 key matrixes remote control transmission remote control receiver and LCD Section 7 Platform PCB and Emulation Some picture about the PCB and emula
19. 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 ENESAS 3 Quick Overview of How to Use the Board The M34559 Evaluation Board MCU board can be operated either using 2 AAA batteries 1 5v 2 or DC power supply 3V 5 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 OZROM programmed with sample software 1 Connect the M34559 evaluation board to the Application Board 2 Insert the QZROM 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 SEG
20. Subroutine KEY_MODE KEY BOARD LOCKED no POWERON yes 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 ENESAS 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 ar AUTO FAN 1 Process Is it in COOL mode yes COOL FAN 1 Process Return no 22 Renesas System Solution Asia Pte Ltd Shanghai Pepresenative Office Unit 207 AZIA Center No133 Yincheng Rd n Pudong District Shanghai China 021 68880556 Fax 021 68880559 Zip 200120 ENESAS 5 12 key fan Subroutine continue e gt Is itin DRY mode yes DRY fan speed 1 process Is itin HEAT mode HEAT fan speed 1 process FAN fan speed 1 process Return 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 ENESAS 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
21. TES ATP MARS Aa NECE AR AA th Fin EHxT20105 4 FLARES EA CAJ SERI HATE Agro ARR PARA AS PORN BLUE ASE E fac BA IA ZS AMA ESEI WS AS CURIA CHE BO ad e Fin b a ZS A IMHE http www renesas com 2010474 51H Jj BE HT ZS mi EIT ik Fa FAR Chttp www renesas com 4L 25 E if 1 http www renesas com inquiry 2 NE S AS 8 10 11 12 Notice All information included in this document is current as of the date this document is issued Such information however is subject to change without any prior notice Before purchasing or using any Renesas Electronics products listed herein please confirm the latest product information with a Renesas Electronics sales office Also please pay regular and careful attention to additional and different information to be disclosed by Renesas Electronics such as that disclosed through our website Renesas Electronics does not assume any liability for infringement of patents copyrights or other intellectual property rights of third parties by or arising from the use of Renesas Electronics products or technical information described in this document No license express implied or otherwise is granted hereby under any patents copyrights or other intellectual property rights of Renesas Electronics or others You should not alter modify copy or otherwise misappropriate any Renesas Electronics product whether in whole or in part
22. Unit 207 AZIA Center No133 Yincheng Rd n Pudong District Shanghai China Tel 021 68880556 Fax 021 68880559 Zip 200120 ENESAS 5 28 Display Subroutine continue 2 yes je DISP FAN A es 5 o lt DISP_FAN_C DISP FAN D DISP FAN H DISP FAN F 2 o o o lt lt oO o DISP FAN CON DISP MODE od 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 ENESAS 5 29 Display Subroutine continue 3 yes je no DISP_MODE_A yes DISP MODE C DISP MODE D DISP MODE H no y DISP_MODE_F DISP SWING 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 ENESAS 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 O yes DISP_LOCK_ON DISP_LOCK_OFF RETURN 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 ENESAS 5 3
23. al 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 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 ENESAS 5 2 warm_start Subroutine MAIN update time count key scan TIMECOMO5 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 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 ENESAS 5 3 RAM clear Subroutine RAM_CLEARO Clear RAM M DP lt 0 Y lt Y 1 gt yes X X 1 a8 e gt yes 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 ENESAS 5 4 DATA_INIT Subroutine DATA_INIT Clear LCD initial to auto mode initial real time set flag initial real time
24. amming 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 package 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 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 3 Renesas System Solution Asia
25. anghai Pepresenative Office Unit 207 AZIA Center No133 Yincheng Rd n Pudong District Shanghai China Tel 021 68880556 Fax 021 68880559 Zip 200120 ENESAS 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 3 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 T timer D At power on mode it can set the timer off function at power off mode it can set timer on function 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 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
26. ax 021 68880559 Zip 200120 ENESAS 5 19 KEY_Timer Subroutine KEY_TIMER yes no yes no SET KEYF RETURN yes no Hi viro no Jump to KEY TIMER50 Vz Jump to no KEY_TIMER30 KEY_TIMER15 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 5 20 KEY_TIMER Subroutine continue KEY_TIMER15 SET T10SF_SETTIME and count register power on no Clear TIMERONF Set TIMEROFF Set TIMERF yes ENESAS Set TIMERONF Clear TIMEROFF Set TIMERF RETURN KEY_TIMER30 n yes ompare real time and timer value Is it equal no Set TRANSF Clear TIMERONF Clear TIMERF 31 Renesas System Solution Asia Pte Ltd Shanghai Pepresenative Office Set TRANSF Clear TIMERONF Clear TIMEROFF Clear TIMERF yes RETURN Unit 207 AZIA Center No133 Yincheng Rd n Pudong District Shanghai China Tel 021 68880556 Fax 021 68880559 Zip 200120 ENESAS 5 21 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 32 Renesas System Solution Asia Pte Ltd Shang
27. ee een EUR 16 5 6 KEY DECODE Subroutine eese eene ee ee ee ee ee en aeree oe 17 5 7 KEY DECODE Subroutine continue sese eene ed ee Re ee 18 3 9 key down SUDTOUUNE au 19 3 9 key down Subroutine CONtiNUe ena NN a kJ 20 3 10 key mode Subroutine une 21 3 11 key fan iiie nu ee 22 3 12 key fan Subroutine conta ne 23 AENA EES AN SS 24 3 14 key clock DUDIQUONO ss EEE o o se ee Du E MEE 25 5 15 KEY POWER SUDTOUtINE s ssssssss kssesessssssssssssssssssseeseeeeqssssssssssssssss s 26 5 16 KEY LOCK Subrouftine un essen cn sin 27 5 17 KEY TDOWN Subroutine 002ccssseseeeeeennnnnnnnnnnnnnnnnensennnnnnnnnnnnnnnnnnnennnennnnnnennnnnnnn 28 5 18 KEY TDOWN Subroutine continue esse ee ee ee ee ee ee ee 29 5 19 KEY Timer Subroutine n e esse se ee Ge ee ee naar 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 5 20 KEY TIMER Subroutine continue eise sees es see ee eene 31 5 21 KEY TIMER Subroutine continue esses enne nennen enne nnne 32 5 22 me con SUBLOULINE ia 33 3 23 TRANS ST Subroutine recie ener tue ERE Eee areas 34 5 24 TDATACON Subroutine s ss sosecssssssevossessssesovossasassesssvessnsssssvoversausesevovorsas 35 5 23 Display Subroutine
28. ent or systems for transportation and traffic healthcare combustion control aerospace and aeronautics nuclear power or undersea communication transmission If you are considering the use of our products for such purposes please contact a Renesas sales office beforehand Renesas shall have no liability for damages arising out of the uses set forth above 8 Notwithstanding the preceding paragraph you should not use Renesas products for the purposes listed below 1 artificial life support devices or systems 2 surgical implantations 3 healthcare intervention e g excision administration of medication etc 4 any other purposes that pose a direct threat to human life Renesas shall have no liability for damages arising out of the uses set forth in the above and purchasers who elect to use Renesas products in any of the foregoing applications shall indemnify and hold harmless Renesas Technology Corp its affiliated companies and their officers directors and employees against any and all damages arising out of such applications 9 You should use the products described herein within the range specified by Renesas especially with respect to the maximum rating operating supply voltage range movement power voltage range heat radiation characteristics installation and other product characteristics Renesas shall have no liability for malfunctions or damages arising out of the use of Renesas products beyond such specified ranges 10 Alt
29. 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 Ds1 1 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 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 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 44 NESAS Revision History Description Rev Date Page Summary 1 00 Jun 28 06 First edition issued 64 Renesas System Solution Asia Pte Ltd Shanghai Pepresenative Office Unit 207 AZIA Center No133 Yincheng Rd n Pudong District Shanghai Ch
30. hai Pepresenative Office Unit 207 AZIA Center No133 Yincheng Rd n Pudong District Shanghai China Tel 021 68880556 Fax 021 68880559 Zip 200120 ENESAS 5 22 time_con Subroutine TIMECON TIMER 3 overflow e 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 timeroff and timeron status RETURN 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 ENESAS 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 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 ENESAS 5 24 TDATACON Subroutine TDATACON USER CODE PROCESS TDATAAH TDATAAL i 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
31. he 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 skkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk Generate the HEAD of command Refer to the signal wave Note HEAD 4 4ms HIGH 4 4ms LOW skkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk 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 ENESAS 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 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 ENESAS 7 Platform PCB and Emulation 7 1 Platform PCB Layout Introduction Below figure shows the PCB Layout and illustrates out the location of the main parts POWER Battery D Choice JP 2 AAA APP POWER 77 Board Ni TT Aa Ij e iam l gt AO A M ej 9 PETIKAN In system IFto 4 4 progra
32. hough Renesas endeavors to improve the quality and reliability of its products IC products have specific characteristics such as the occurrence of failure at a certain rate and malfunctions under certain use conditions Please be sure to implement safety measures to guard against the possibility of physical injury and injury or damage caused by fire in the event of the failure of a Renesas product such as safety design for hardware and software including but not limited to redundancy fire control and malfunction prevention appropriate treatment for aging degradation or any other applicable measures Among others since the evaluation of microcomputer software alone is very difficult please evaluate the safety of the final products or system manufactured by you 11 In case Renesas products listed in this document are detached from the products to which the Renesas products are attached or affixed the risk of accident such as swallowing by infants and small children is very high You should implement safety measures so that Renesas products may not be easily detached from your products Renesas shall have no liability for damages arising out of such detachment 12 This document may not be reproduced or duplicated in any form in whole or in part without prior written approval from Renesas 13 Please contact a Renesas sales office if you have any questions regarding the information contained in this document Renesas semiconductor products or if yo
33. ina Tel 021 68880556 Fax 021 68880559 Zip 200120 ENESAS Notes regarding these materials 1 This document is provided for reference purposes only so that Renesas customers may select the appropriate Renesas products for their use Renesas neither makes warranties or representations with respect to the accuracy or completeness of the information contained in this document nor grants any license to any intellectual property rights or any other rights of Renesas or any third party with respect to the information in this document 2 Renesas shall have no liability for damages or infringement of any intellectual property or other rights arising out of the use of any information in this document including but not limited to product data diagrams charts programs algorithms and application circuit examples 3 You should not use the products or the technology described in this document for the purpose of military applications such as the development of weapons of mass destruction or for the purpose of any other military use When exporting the products or technology described herein you should follow the applicable export control laws and regulations and procedures required by such laws and regulations 4 All information included in this document such as product data diagrams charts programs algorithms and application circuit examples is current as of the date this document is issued Such information however is subject to change withou
34. 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 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 ENESAS Appendix F renesas air conditioner LCD panel truly table 1 The following picture is about the renesas air conditioner LCD panel SCALE Lil 2 The truly table of the LCD panel is as follows ji e Uy iraj UY IF IL LINN CLOCK ON DY Noll T DEE 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 8 9 3D MIDDLE ENESAS Sl e 1 1 ISTE NIE Zl E Da DIO mu gt If we change it into M34
35. 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 D 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 D 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 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 ENESAS Appendix E how to program the M34559 on board using EFP S2V M34559 is aQzROM type MCU it can be programmed on the board using EFP S2V 1 hardware Before we program M34559 we need following hardware 1 PC
36. it in fan mode key_sleep decode start set transmit flag delay flag Reset 7 hours count value Clear to 0 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 ENESAS 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 gt no RESET TIMEF 0 BACK UP REAL TIME SET timef 1 TIMERF 0 TIMERONF 0 TIMEROFF 0 RESET 10 S COUNT RETURN 25 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 ENESAS 5 15 KEY_POWER Subroutine KEY_POWER es 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 26 ENESAS 5 16 KEY_LOCK Subroutine KEY_LOCK nlo SET KEYF CLEAR KEYLOCKF SET KEYLOCKF RETURN Renesas System Solution Asia Pte Ltd Shanghai Pepresenative Office Unit 207 AZIA Center No133 Yinche
37. m IF APP Board keyboard MCU IF To board emulator 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 ENESAS 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 f fi not included Power supply cable USB interface cable Power supply for user system not included Host machine Compact emulator not included M24550T2 CPE Ffioh oopvecter board User system 7 2 2 Actual emulation system Below figure shows the actual emulation platform connected with emulator M34559T2 CPE 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 ENESAS 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 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
38. mbotion to white goods customers In addition it can be used by software engineer self training on 4 bit software programming 2 Platform specification EO RT EE AE IN NE O Om Battery Power supply al l l l Target board Ol 1 M34559 remote controller platform l 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 SoPBBBELVDO 2 2 Key Features The evaluation package set can be used as a demo board or a training board 1 Demo board With the OZROM 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 QZROM 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 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 44 NESAS user to have hands on experience on 4 bit software progr
39. 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 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 ENESAS All Right Reserved This user s manual and product are copyrighted and all rights are reserved by Renesas No part of this user s manual all o
40. nesas Electronics products are classified according to the following three quality grades Standard High Quality and Specific The recommended applications for each Renesas Electronics product depends on the product s quality grade as indicated below You must check the quality grade of each Renesas Electronics product before using it in a particular application You may not use any Renesas Electronics product for any application categorized as Specific without the prior written consent of Renesas Electronics Further you may not use any Renesas Electronics product for any application for which it is not intended without the prior written consent of Renesas Electronics Renesas Electronics shall not be in any way liable for any damages or losses incurred by you or third parties arising from the use of any Renesas Electronics product for an application categorized as Specific or for which the product is not intended where you have failed to obtain the prior written consent of Renesas Electronics The quality grade of each Renesas Electronics product is Standard unless otherwise expressly specified in a Renesas Electronics data sheets or data books etc Standard Computers office equipment communications equipment test and measurement equipment audio and visual equipment home electronic appliances machine tools personal electronic equipment and industrial robots High Quality Transportation equipmen
41. ng Rd n Pudong District Shanghai China Tel 021 68880556 Fax 021 68880559 Zip 200120 27 ENESAS 5 17 KEY_TDOWN Subroutine KEY_TDOWN keyboard lock yes no RETURN yes no no RETURN set the timer flags KEY TDOWNI5 and count register KEY TDOW N35 set the timer flags and count register is it pressed when first time firstf 0 at the first time is it pressed at the first time yes yes reset relative timer set the first time flag 1 reset relative timer set the first time flag 1 yes check T4SF_TUPDOW N 1 no yes Process timer add 1 no at TIMERON MODE the procession is familar with adjusting time at time mode 28 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 ENESAS 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 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 F
42. peed 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 gt It is forbidden to adjust FAN SPEED at AUTO and DRY mode the FAN SPEED is fixed value but the TEMPERATURE CAN ADJUST lt gt At COOL and HEAT mode we can adjust both fan speed and temperature lt gt 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 31 gt 30 gt 18 3 When the value of temperature is up down to 18 32 it will not change but IR signal is also send 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 3 The sequence of fan speed change is as follows AUTO MIDDLE HIGH Po 58 Renesas System Solution Asia Pte Ltd Sh
43. product s means any product developed or manufactured by or for Renesas Electronics ENESAS RSSHEUMOOO2 0100 Microcomputer Development Environment System 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 ENESAS RSSHEUMOOO2 0100 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 ENESAS 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 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 ENESAS IMPORTANT INFORMATION lt gt READ this user s manual before using this evaluation board lt gt KEEP the use
44. r 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 safely at your own risk 4 Renesas System Solution Asia Pte Ltd Shanghai Pepresenative Office Unit 207 AZIA Center
45. r 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 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 ENESAS 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 cover damage caused by fair wear and tear abnormal store condition incorrect use accidental
46. real time minute 0 00 00 0 0 minute E 0 00 00 1 1minute 1 1 1 0 1 J 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 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 ENESAS D5 D4 D3 D2 D1 DO timer minute 0 00 00 0 0 minute G 0 00 00 1 1 minute 11101 I 59 minute D1 D0 timer status 0 0 no timer on off ENE timer off INN timer on D2 power on off power on H 0 power off D3 sleep sleep no sleep D4 swing swing no swing I checksum A B C D E F G H low 8 bit ignore carry 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 021 68880559 Zip 200120 ENESAS 5 Sample Software Flowchart 5 1 Initialization Subroutine Disable interrupt y Disable watchdog wait for stable yes STCK f xin initial MR and RG Y Clear RAM y initi
47. t automobiles trains ships etc traffic control systems anti disaster systems anti crime systems safety equipment and medical equipment not specifically designed for life support Specific Aircraft aerospace equipment submersible repeaters nuclear reactor control systems medical equipment or systems for life support e g artificial life support devices or systems surgical implantations or healthcare intervention e g excision etc and any other applications or purposes that pose a direct threat to human life You should use the Renesas Electronics products described in this document within the range specified by Renesas Electronics especially with respect to the maximum rating operating supply voltage range movement power voltage range heat radiation characteristics installation and other product characteristics Renesas Electronics shall have no liability for malfunctions or damages arising out of the use of Renesas Electronics products beyond such specified ranges Although Renesas Electronics endeavors to improve the quality and reliability of its products semiconductor products have specific characteristics such as the occurrence of failure at a certain rate and malfunctions under certain use conditions Further Renesas Electronics products are not subject to radiation resistance design Please be sure to implement safety measures to guard them against the possibility of physical injury and injury or damage caused b
48. t any prior notice Before purchasing or using any Renesas products listed in this document please confirm the latest product information with a Renesas sales office Also please pay regular and careful attention to additional and different information to be disclosed by Renesas such as that disclosed through our website http www renesas com 5 Renesas has used reasonable care in compiling the information included in this document but Renesas assumes no liability whatsoever for any damages incurred as a result of errors or omissions in the information included in this document 6 When using or otherwise relying on the information in this document you should evaluate the information in light of the total system before deciding about the applicability of such information to the intended application Renesas makes no representations warranties or guaranties regarding the suitability of its products for any particular application and specifically disclaims any liability arising out of the application and use of the information in this document or Renesas products 7 With the exception of products specified by Renesas as suitable for automobile applications Renesas products are not designed manufactured or tested for applications or otherwise in systems the failure or malfunction of which may cause a direct threat to human life or create a risk of human injury or which require especially high quality and reliability such as safety systems or equipm
49. tion and comments AppendxABCDEFG Some useful information about source code spec and tools 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 ENESAS Contents I ceni uso a ees aa E T A E A anda A a aaa dadah 1 a a ON nn es A na aa a a ann NE 2 2 1 Outline of the function ee Re nee Re ee anna nana anna enn 2 22 Key a NOR EE ENE A esa adl 2 pet ts c A re 3 24 Specific tlOnS a AN NE 3 3 Quick Overview of How to Use the Board en en an Re ER eene Re Re nene 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 tail ii 7 TI Key Matrix KN AE AE AO 7 AE ODE Teel OE a lan o OE OE ka 8 4 3 Transmission Format siese 2 EER pena cas se ee ee e EG ANS 9 ie ee de dd ie ie EE E TN EGA 12 5 1 Initialization SUDTOU INC cooononoccnnnononoonnnoncnnnnonnnnoncnnnononononnconnnonnnnnncnnnnnn no ea no sonen 12 5 2 warm start Subroutine pee ctor eto EG GE Gee i aa 13 3 3 RAM clear Subroutine ss sesse ER GES SG eek Ee ia in RR aan 14 54 DATA INIT Subro imne rete tte t ttt ere Pessac dete iss une eins 15 55 LCD ALLI S broutine tie reote tere bebes est estate OR PRA ERE EYE RE te oue e
50. u have any other inquiries 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
51. urn off all segment of the LCD panel and display default settings 3 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 A 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 is 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 3 key function 1 power on off When we press it at power off mode It will go into power on mode vice versa 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 ENESAS At power on there is operation mode temperature fan s
52. y fire in the event of the failure of a Renesas Electronics product such as safety design for hardware and software including but not limited to redundancy fire control and malfunction prevention appropriate treatment for aging degradation or any other appropriate measures Because the evaluation of microcomputer software alone is very difficult please evaluate the safety of the final products or system manufactured by you Please contact a Renesas Electronics sales office for details as to environmental matters such as the environmental compatibility of each Renesas Electronics product Please use Renesas Electronics products in compliance with all applicable laws and regulations that regulate the inclusion or use of controlled substances including without limitation the EU RoHS Directive Renesas Electronics assumes no liability for damages or losses occurring as a result of your noncompliance with applicable laws and regulations This document may not be reproduced or duplicated in any form in whole or in part without prior written consent of Renesas Electronics Please contact a Renesas Electronics sales office if you have any questions regarding the information contained in this document or Renesas Electronics products or if you have any other inquiries Note 1 Renesas Electronics as used in this document means Renesas Electronics Corporation and also includes its majority owned subsidiaries Note 2 Renesas Electronics

Download Pdf Manuals

image

Related Search

Related Contents

B-LINK - Irradio  SATFINDER 5 HD Slim - TELE  陸 上 自 衛 隊 仕 様 書 オージオメータ,自動判定式  Sierra de Cinta de 14 pulg.  The Audit Plan – template user guide    Sartorius YPSC01-X Sartorius YPSC01-Z  FZ. 01 / 435.92 / 05504 / 04  Molécules podocytaires impliquées dans les  Melissa 143-074 User's Manual  

Copyright © All rights reserved.
Failed to retrieve file