Gebruiksaanwijzing /service van het product enCoRe CY7C601xx van de fabrikant Cypress Semiconductor
Ga naar pagina of 68
CY7C601xx, CY7C602xx enCoRe™ II Low V olt age Microcontroller Cypress Semiconducto r Corporation • 198 Champion Court • San Jose , CA 95134-1709 • 408-943-2600 Document 38-16016 Rev .
CY7C601xx, CY7C602xx Document 38-16016 Rev . *E Page 2 of 68 3. Applications The CY7C601xx and CY7C602xx are targeted for the following applications: ■ PC wireless HID devices ❐ Mice (optomechanic.
CY7C601xx, CY7C602xx Document 38-16016 Rev . *E Page 3 of 68 6. Pinout s Figure 6-1. Package Configu ration s 1 2 3 4 5 6 9 11 15 16 17 18 19 20 22 21 NC P0.7 TIO1/P0.6 TIO0/P0.5 INT2/P0.4 INT1/P0.3 CLKINP0.0 P2.0 P1.5/SMOSI P1.3/SSEL P3.1 P3.0 V DD P1.
CY7C601xx, CY7C602xx Document 38-16016 Rev . *E Page 4 of 68 6.1 Pin Assignment s T able 6-1. Pin Assignment s 48 SSOP 40 PDIP 28 SSOP 24 QSOP 24 SOIC 24 PDIP Name Description 7 3 P4.0 GPIO Port 4—configured as a grou p (n ibble) 62 P 4 . 1 42 38 P4.
CY7C601xx, CY7C602xx Document 38-16016 Rev . *E Page 5 of 68 23 19 13 9 9 16 P0.0/CL KIN GPIO Po rt 0 bit 0—Configured individually On CY7C601xx, opti onal Clock In when external osci llator is disabled or external oscillator inp ut wh en external oscillator is enabled.
CY7C601xx, CY7C602xx Document 38-16016 Rev . *E Page 6 of 68 7. Register Summary T able 7-1. enCoRe II L V Register Summary The XIO bit in the CPU Flags Register must be set to access the extended regi ster space for all registers above 0xFF . Addr Name 7 6 5 4 3 2 1 0 R/W Default 00 P0DA T A P0.
CY7C601xx, CY7C602xx Document 38-16016 Rev . *E Page 7 of 68 Note In the R/W column: b = Both Re ad and Write r = Read O nly w = Write Only c = Read or Clear d = Calibra tion V alue.
CY7C601xx, CY7C602xx Document 38-16016 Rev . *E Page 8 of 68 8. CPU Architecture This family of microcontrollers is based on a high performan ce, 8-bit, Harvard architec ture microprocessor . Fi ve registers control the primary operation of the CPU core.
CY7C601xx, CY7C602xx Document 38-16016 Rev . *E Page 9 of 68 9.1.1 Accum ulator Regist er 9.1.2 Index Register 9.1.3 S tack Pointer Register 9.1.4 CPU Program Counter High Register 9.
CY7C601xx, CY7C602xx Document 38-16016 Rev . *E Page 10 of 68 9.2 Addressi ng Modes 9.2.1 Source Immediate The result of an instruction using this addressing mode is placed in the A register , the F register , the SP register , or the X register , which is specified as part of the instruction opcode.
CY7C601xx, CY7C602xx Document 38-16016 Rev . *E Page 1 1 of 68 9.2.5 Destination Indexed The result of an instruction using this addressing mode is placed within either th e RAM memory space or the register space. Operand 1 is adde d to the X register forming the a ddress that poi nts t o th e l oca tio n of th e re sult.
CY7C601xx, CY7C602xx Document 38-16016 Rev . *E Page 12 of 68 9.2.9 Source Indirect Post Increment The result of an instruction using this addressing mode is placed in the Accumulator. Operand 1 is an address pointing to a location within the memory space, which contains an address (the indirect address) for the s ource of the instruction.
CY7C601xx, CY7C602xx Document 38-16016 Rev . *E Page 13 of 68 13 7 2 SUB A, [X+expr] C, Z 40 4 1 NOP 6D 4 1 RRC A C, Z 14 7 2 SUB [expr], A C, Z 41 9 3 AND reg[expr], expr Z 6E 7 2 RRC [expr] C, Z 15 .
CY7C601xx, CY7C602xx Document 38-16016 Rev . *E Page 14 of 68 1 1. Memory Organization 1 1.1 Flash Progra m Memory Organization Figure 1 1-1. Program Memo ry Space with Interrupt V ector T able after .
CY7C601xx, CY7C602xx Document 38-16016 Rev . *E Page 15 of 68 1 1.2 Dat a Memory Organization The CY7C601xx and CY7C602xx microcon tro llers provid e up to 256 bytes of data RAM Figure 1 1-2 . Data Memory Organization 1 1.3 Flas h This section describes the Flash blo ck of enCoRe II L V .
CY7C601xx, CY7C602xx Document 38-16016 Rev . *E Page 16 of 68 T wo important variables used for all functions are KEY1 and KEY2. These variables help discrimi nate between valid and inadvertent SSCs. KEY1 always ha s a value of 3Ah, while KEY2 has the same value as the stack pointer when the SRO M function begins execution.
CY7C601xx, CY7C602xx Document 38-16016 Rev . *E Page 17 of 68 1 1.5.3 WriteBlock Function The Wr iteBlock func tion is used to stor e data in Flash. Dat a is moved 64 bytes at a time from SRAM to F lash using this functio n. The WriteBlock function first checks the protection bits and deter- mines if the desired BLOCKID is writable.
CY7C601xx, CY7C602xx Document 38-16016 Rev . *E Page 18 of 68 1 1.5.6 EraseAll Function The EraseAll function performs a series of steps that destroy the user data in the Flash macros and resets the protection block in each Flash macro to all zeros (the unprotected state).
CY7C601xx, CY7C602xx Document 38-16016 Rev . *E Page 19 of 68 1 1.6 SROM T able Read Description The Silicon IDs for enCoRe II L V devices are stored in SROM tables in the part, as shown in Figure 1 1-3. on page 20 The Silicon ID can be read out from the part using SROM T able reads.
CY7C601xx, CY7C602xx Document 38-16016 Rev . *E Page 20 of 68 Figure 1 1-3. SROM T abl e 1 1.6.1 Checksum F unct i on The Checksum function calculates a 16-bit checksum over a user specifiable number of blocks, within a single Flash macro (Bank) starting from block zero.
CY7C601xx, CY7C602xx Document 38-16016 Rev . *E Page 21 of 68 12. Clocking The enCoRe II L V has two internal oscillators, the internal 24 MHz oscillator and the 32 kHz low power oscilla tor . The internal 24 MHz oscillator is designed such that it is trimmed to an output frequency of 24 MHz over temperature and voltage variation.
CY7C601xx, CY7C602xx Document 38-16016 Rev . *E Page 22 of 68 When using the 32 kHz oscillator , the PITMRL/H is read un til two consecutive readings match before sending a nd receiving d ata. The following firmware example a ssumes the developer i s interested i n the lower byte of the PIT .
CY7C601xx, CY7C602xx Document 38-16016 Rev . *E Page 23 of 68 Figure 12-1. CPU Clock Block Diagram SCALE (divid e b y 2 n, n = 0- 5,7) MUX CLK_EXT CLK_ 24MH z CPUCLK SEL CLK_C PU Doubl er CLK_HS LP OS C 32-KHz CLK_32KHz XTAL OSC 1-24MHz CY7C601xx onl y MUX Crys ta l O s cilla to r Dis ab le d XOSC SEL EN CLK_EXT EFTB P0.
CY7C601xx, CY7C602xx Document 38-16016 Rev . *E Page 24 of 68 Read/Write – – R/W R/W R/W R/W R/W R/W Default 0 0 0 0 0 0 0 0 Bit [7:6]: Reserved Bit 5: No Buzz During sleep (the Sleep bi t is set .
CY7C601xx, CY7C602xx Document 38-16016 Rev . *E Page 25 of 68 12.2.2 Interval Timer Clock (ITMRCLK) The Interval T i mer Clock (ITMRCLK) is sourced from the external crystal oscillator , the internal 24 MHz oscillator , the internal 32 kHz low power oscillator , or the T imer Capture clock.
CY7C601xx, CY7C602xx Document 38-16016 Rev . *E Page 26 of 68 Figure 12-2. Programmable Interv al Timer Block Dia gra m 12.2.3 T imer Capt ure Clock (TCAPCL K) The T i mer Capture clock (TCAPCLK) is sourced from the external cryst al oscillator , the internal 24 MHz oscillator or the intern al 32 kHz low power oscillator .
CY7C601xx, CY7C602xx Document 38-16016 Rev . *E Page 27 of 68 T able 12-5. Ti mer Clock Config uration (TMRCLKCR) [0x31] [R/W] Bit # 76543210 Field TCAPCLK Divide r TCAPCLK Select ITMRCLK Divider ITMRCLK Select Read/Write R/W R/W R/W R/W R/W R/W R/W R/W Default 10001111 Bit [7:6]: TCAPCLK Divider [1:0] TCAPCLK Divider controls the TCAPCLK divisor .
CY7C601xx, CY7C602xx Document 38-16016 Rev . *E Page 28 of 68 12.2.4 I nternal Clock T rim 12.2.5 External Clock T rim T able 12-6. IOSC T rim (IOSCTR ) [0x34] [R /W] Bit # 76543210 Field fo ffset[2: .
CY7C601xx, CY7C602xx Document 38-16016 Rev . *E Page 29 of 68 12.2.6 LPO SC T rim 12.3 CPU Clock During Sleep Mode When the CPU enters sleep mode the CPUCLK Select (Bit 0, T able 12-2 ) is forced to the internal os cilla tor , and the oscillator is stopped.
CY7C601xx, CY7C602xx Document 38-16016 Rev . *E Page 30 of 68 13. Reset The microcontroller su pports two types of resets: Power on Reset (POR) and W atch dog Reset (WDR). When reset is initi ated, all registers are restored to their default states and al l interrupts are disabled.
CY7C601xx, CY7C602xx Document 38-16016 Rev . *E Page 31 of 68 13.1 Power On Reset POR occurs every time the powe r to the device is switched on. POR is released when the supply is typically 2.6V for the upward supply transition, with typicall y 50 mV of hyster esis during the power on transient.
CY7C601xx, CY7C602xx Document 38-16016 Rev . *E Page 32 of 68 14.1 Sleep Sequence The SLEEP bit is an input into th e sleep logic circuit. This circuit is designed to seque nce the device into a nd out of the hardware sleep state. The hardware sequence to put th e device to sleep is shown i n Figure 1 4-1.
CY7C601xx, CY7C602xx Document 38-16016 Rev . *E Page 33 of 68 14.2 Wakeup Sequen ce When asleep, the onl y event that wakes the system up is an interrupt. The g lobal interrupt enable o f the CPU flag register need not be set. Any unmasked interrupt wakes the system up.
CY7C601xx, CY7C602xx Document 38-16016 Rev . *E Page 34 of 68 15. Low V oltage Detect Control T able 15-1. Low V olt age Control Regis ter (L VDCR) [0x1E3 ] [R/W] Bit # 76543210 Field Reserved PORLEV[.
CY7C601xx, CY7C602xx Document 38-16016 Rev . *E Page 35 of 68 15.1 POR Comp are St ate 15.2 ECO T rim Registe r T able 15-2. V olt age Monitor Comparators Register (VL TCMP) [0x1E4] [R] Bit # 76543210.
CY7C601xx, CY7C602xx Document 38-16016 Rev . *E Page 36 of 68 16. General Purpose IO P ort s 16.1 Port Da ta Registers 16.1.1 P0 Data 16.1.2 P1 Data T able 16-1. P0 Data Register (P0DA T A)[0x00] [R/W] Bit # 76543210 Field P0.7 P0.6/TIO1 P0.5/TIO0 P0.
CY7C601xx, CY7C602xx Document 38-16016 Rev . *E Page 37 of 68 16.1.3 P2 Data 16.1.4 P3 Data 16.1.5 P4 Data 16.2 GPIO Port Configurat ion All GPIO configuration registers have common configuration controls. By default all GPIOs are confi gured as inputs.
CY7C601xx, CY7C602xx Document 38-16016 Rev . *E Page 38 of 68 16.2.4 Hi gh Sink When set, the outp ut sinks up to 50 mA. When clear , the output sinks up to 8 mA. On the CY7C601xx, only the P3.7, P2.7, P0.1, and P0.0 have 50 mA sink drive capability .
CY7C601xx, CY7C602xx Document 38-16016 Rev . *E Page 39 of 68 16.2.10 P0.1 /C LK OUT Configu r at ion 16.2.1 1 P0.2/INT0–P0.4/INT2 Configuration T able 16-7.
CY7C601xx, CY7C602xx Document 38-16016 Rev . *E Page 40 of 68 16.2.12 P0.5/TIO0–P0.6/T IO1 Config uration 16.2.13 P0.7 Configuratio n 16.2.14 P1.0 Configuratio n T able 16-9.
CY7C601xx, CY7C602xx Document 38-16016 Rev . *E Page 41 of 68 16.2.15 P1.1 Configuratio n 16.2.16 P1.2 Configuratio n 16.2.17 P1.3 Co nfiguration (SSEL) T able 16-12.
CY7C601xx, CY7C602xx Document 38-16016 Rev . *E Page 42 of 68 16.2.18 P1.4– P1.6 Configurat ion (SCLK, SMOSI, SMISO) 16.2.19 P1.7 Configuratio n 16.2.
CY7C601xx, CY7C602xx Document 38-16016 Rev . *E Page 43 of 68 16.2.21 P3 Configuratio n 16.2.22 P4 Configuratio n T able 16-18. P3 Configuration (P3CR) [0x16] [R/W] Bit # 76543210 Field Reserved Int E.
CY7C601xx, CY7C602xx Document 38-16016 Rev . *E Page 44 of 68 17. Serial Periphe ral Interface (SPI) The SPI Master and Slave Interface core logic runs on the SPI clock domain. T he SPI cloc k is a divider off of the CPUCLK when i n Master Mode. SPI is a four pin serial interface compri sed of a clock, an enable, and two data pins.
CY7C601xx, CY7C602xx Document 38-16016 Rev . *E Page 45 of 68 17.1 SPI Data Register When an interrupt occurs to indicate to firmware tha t a byte of receive data is availabl e or the transmitter hold.
CY7C601xx, CY7C602xx Document 38-16016 Rev . *E Page 46 of 68 T able 17-3. SPI Mode Timing vs. LSB First, CPOL, and CPHA LSB First CPHA CPOL Diagram 00 0 00 1 01 0 01 1 10 0 10 1 11 0 11 1 SCL K SSEL .
CY7C601xx, CY7C602xx Document 38-16016 Rev . *E Page 47 of 68 17.3 SPI Interface Pins The SPI interface uses the P1.3–P1.6 p ins. These pins ar e configured using the P1.3 and P1.4 –P1.6 configuration. 18. Timer Registers All timer func tions of the enCoRe II L V ar e provided by a single timer block.
CY7C601xx, CY7C602xx Document 38-16016 Rev . *E Page 48 of 68 18.1.2 Time Capture enCoRe II L V has two 8-bit captures. Each capture has a separate register for rising and falling time. The two 8-bit captures c an be configured as a single 1 6-bit capture.
CY7C601xx, CY7C602xx Document 38-16016 Rev . *E Page 49 of 68 T able 18-4. Captur e Interrupt Enable (TCAPINTE) [0x2B] [R/W] Bit # 76543210 Field Reserved Cap1 Fall Enable Cap1 Rise Enable Cap0 Fall E.
CY7C601xx, CY7C602xx Document 38-16016 Rev . *E Page 50 of 68 ‘ 18.1.3 Programmable I nte rval Timer T able 18-8. Timer Capture 1 Falling (TCAP1F) [0x25 ] [R/W] Bit # 76543210 Field Capture 1 Fallin.
CY7C601xx, CY7C602xx Document 38-16016 Rev . *E Page 51 of 68 T able 18-1 1. Programmable Interval Timer High (PITMRH) [0x27] [R] Bit # 76543210 Field Reserved Prog Interval T imer [1 1:8] Read/Write .
CY7C601xx, CY7C602xx Document 38-16016 Rev . *E Page 52 of 68 Figure 18-3. Timer Functional Sequence Diagra m [+] Feedback [+] Feedback.
CY7C601xx, CY7C602xx Document 38-16016 Rev . *E Page 53 of 68 Figure 18-4. 1 6-Bit Free Running Co unter Loading Timing Diagram Figure 18-5. Memory Mapped Registers Re ad and Write Timing Diagram clk_.
CY7C601xx, CY7C602xx Document 38-16016 Rev . *E Page 54 of 68 19. Interrupt Controller The interrupt controller and its associated registers allow the user ’s code to respond to an interrupt from almost every functional block in the enCoRe II L V devices.
CY7C601xx, CY7C602xx Document 38-16016 Rev . *E Page 55 of 68 19.2 Interru pt Processi ng The sequence of events that occur during interrupt processing i s as follows: 1. An interrupt becomes active, either because : a. The interrupt condition occurs (for example, a timer expires).
CY7C601xx, CY7C602xx Document 38-16016 Rev . *E Page 56 of 68 19.4.2 I nterrupt Mask Registers The Interrupt Mask Registers (INT_MSKx) enable th e individual interrupt sources’ ability to create pending interrupts. There are four Interrupt Mask Registers (INT _MSK0, INT_MSK1, INT_MSK2, and IN T_MSK3) which are referred to in general as INT_MSKx.
CY7C601xx, CY7C602xx Document 38-16016 Rev . *E Page 57 of 68 T able 19-6. Interrupt Mask 2 (INT_MSK2) [0xDF] [R/W] Bit # 76543210 Field Reserved GPIO Port 4 Int Enable GPIO Port 3 Int Enable GPIO Por.
CY7C601xx, CY7C602xx Document 38-16016 Rev . *E Page 58 of 68 19.4.3 Interrupt V ector Clear Register T able 19-8. Interrupt Mask 0 (INT_MSK0) [0xE0] [R/W] Bit # 76543210 Field GP IO Port 1 Int Enable.
CY7C601xx, CY7C602xx Document 38-16016 Rev . *E Page 59 of 68 20. Absolute Maximum Ratings S torage T emperature ..................... ... ... ........ –40°C to +90°C Ambient T emperature with Power Applied ..... –0°C to +70°C Supply V oltage on V CC Relative to V SS .
CY7C601xx, CY7C602xx Document 38-16016 Rev . *E Page 60 of 68 Figure 20-1. Clock Timing 20.2 AC Characteri stics Parameter Descript ion Conditions Min T ypical Max Unit Clock T ECLKDC External Clock Duty Cycle 45 55 % T ECLK2 External Clock Frequency 1 24 MHz F IMO Internal Main Oscillator Frequency With proper trim values loaded [5] 18.
CY7C601xx, CY7C602xx Document 38-16016 Rev . *E Page 61 of 68 Figure 20-2. GPIO Timing Diagram Figure 20-3. SPI Master Timing, CPHA = 1 10% T R_GPIO T F_GPIO GP IO P in O u tp u t Volt age 90% MSB T M.
CY7C601xx, CY7C602xx Document 38-16016 Rev . *E Page 62 of 68 Figure 20-4. SPI Slave Timing, CPHA = 1 Figure 20-5. SPI Master Timing, CPHA = 0 MSB T SSU LSB T SHD T SCKH T SDO SS SCK (CPOL=0) SCK (CPO.
CY7C601xx, CY7C602xx Document 38-16016 Rev . *E Page 63 of 68 Figure 20-6. SPI Slave Timing, CPHA = 0 1 MSB T SSU LSB T SHD T SCKH T SDO1 SS SCK (CPOL=0) SCK (CPOL=1) MOSI MISO T SCKL T SDO LSB MSB T SSS T SSH 21.
CY7C601xx, CY7C602xx Document 38-16016 Rev . *E Page 64 of 68 23. Package Diagrams Figure 23-1. 24-Pin (300-Mil) SOIC S13 Figure 23-2. 24-Pin (300-Mil) PDIP P13 PIN 1 ID SEA TING PLANE 0.597[15.163] 0.615[15.621] 1 12 13 24 * * * 0.291[7.391] 0.300[7.
CY7C601xx, CY7C602xx Document 38-16016 Rev . *E Page 65 of 68 Figure 23-3. 24-Pin QSOP O241 Figure 23-4. 28-Pin (5.3 mm) Shrunk Small Outline Pack age O28 0.033 0.228 0.150 0.337 0.053 0.004 0.025 0.008 0.016 0.007 0° -8° REF. 0.344 0.157 0.244 BSC.
CY7C601xx, CY7C602xx Document 38-16016 Rev . *E Page 66 of 68 Figure 23-5. 40-Pin (600-Mil) Molded DIP P17 Figure 23-6. 48-Pin Shrunk Small Outline Package O48 51-85019-*A 51-85061 -*C [+] Feedback [+.
CY7C601xx, CY7C602xx Document 38-16016 Rev . *E Page 67 of 68 24. Document History Page Document Title: CY7C601x x, CY7C602xx enCoR e ™ II Low V olt age Microcontroller Document Number: 38-16016 Rev .
Document 38-16016 Rev . *E Revised December 08, 20 08 Page 68 of 68 PSoC is a registere d trademark and enCo Re is a trademark of Cypre ss Semiconductor Corpo ration. All product and company name s me ntioned in this d ocument may b e the trademarks o f their respecti ve holders .
Een belangrijk punt na aankoop van elk apparaat Cypress Semiconductor enCoRe CY7C601xx (of zelfs voordat je het koopt) is om de handleiding te lezen. Dit moeten wij doen vanwege een paar simpele redenen:
Als u nog geen Cypress Semiconductor enCoRe CY7C601xx heb gekocht dan nu is een goed moment om kennis te maken met de basisgegevens van het product. Eerst kijk dan naar de eerste pagina\'s van de handleiding, die je hierboven vindt. Je moet daar de belangrijkste technische gegevens Cypress Semiconductor enCoRe CY7C601xx vinden. Op dit manier kan je controleren of het apparaat aan jouw behoeften voldoet. Op de volgende pagina's van de handleiding Cypress Semiconductor enCoRe CY7C601xx leer je over alle kenmerken van het product en krijg je informatie over de werking. De informatie die je over Cypress Semiconductor enCoRe CY7C601xx krijgt, zal je zeker helpen om een besluit over de aankoop te nemen.
In een situatie waarin je al een beziter van Cypress Semiconductor enCoRe CY7C601xx bent, maar toch heb je de instructies niet gelezen, moet je het doen voor de hierboven beschreven redenen. Je zult dan weten of je goed de alle beschikbare functies heb gebruikt, en of je fouten heb gemaakt die het leven van de Cypress Semiconductor enCoRe CY7C601xx kunnen verkorten.
Maar de belangrijkste taak van de handleiding is om de gebruiker bij het oplossen van problemen te helpen met Cypress Semiconductor enCoRe CY7C601xx . Bijna altijd, zal je daar het vinden Troubleshooting met de meest voorkomende storingen en defecten #MANUAl# samen met de instructies over hun opplosinge. Zelfs als je zelf niet kan om het probleem op te lossen, zal de instructie je de weg wijzen naar verdere andere procedure, bijv. door contact met de klantenservice of het dichtstbijzijnde servicecentrum.