PIC24F04KA201T-I/SS Microchip Technology, PIC24F04KA201T-I/SS Datasheet
![PIC24F Core, 4KB Flash, 512B RAM, 3V, Deep Sleep, 10-bit 500ksps ADC, CTMU, UART](/photos/6/81/68119/150-28-ssop_sml.jpg)
PIC24F04KA201T-I/SS
Specifications of PIC24F04KA201T-I/SS
Related parts for PIC24F04KA201T-I/SS
PIC24F04KA201T-I/SS Summary of contents
Page 1
... PGCx PGC PGDx PGD Legend Input Output Power 2010 Microchip Technology Inc. PIC24FXXKA2XX 2.0 PROGRAMMING OVERVIEW OF THE PIC24FXXKA2XX FAMILY PIC24FXXKA2XX family devices are programmed exclusively using In-Circuit Serial Programming™ (ICSP™). This method provides native, low-level pro- gramming capability to erase, program and verify the device. Section 3.0 “ ...
Page 2
... PIC24FXXKA2XX PIC24FXXKA2XX FIGURE 2-1: 14-Pin SPDIP, SOIC 20-Pin SPDIP, SOIC 20-Pin QFN DS39991A-page 2 PIN DIAGRAMS MCLR PGC2 PGD2 PGD3 6 9 PGC3 MCLR PGC2 3 18 PGD2 PGD3 PGC3 PIC24F04KA201 2010 Microchip Technology Inc. ...
Page 3
... FGS F80004 FOSCSEL F80006 FOSC F80008 FWDT F8000A FPOR F8000C FICD F8000E FDS F80010 2010 Microchip Technology Inc. PIC24FXXKA2XX FIGURE 2-2: depicts the Table 2-3 pro- for more Rows 44 PROGRAM MEMORY MAP 000000h User Flash Code Memory (2816 x 24-bit) 000AFEh ...
Page 4
... Exit ICSP Mode End TABLE 3-1: CPU CONTROL CODES IN ICSP™ MODE 4-Bit Mnemonic Description Control Code Shift in 24-bit instruction 0000 SIX and execute. Shift out the VISI 0001 REGOUT (0784h) register. N/A This is reserved. 0010-1111 2010 Microchip Technology Inc. ...
Page 5
... CPU forces a NOP while the new data is read. To account for this, while using ICSP, any indirect references to a recently modified register should be proceeded with a NOP. 2010 Microchip Technology Inc. PIC24FXXKA2XX For example, MOV [W0],W1 must have a NOP inserted in between. ...
Page 6
... P1A P1B LSB 24-Bit Instruction Fetch PGDx = Input ... LSb Shift Out VISI Register<15:0> PGDx = Output P4A MSB Execute 24-Bit Instruction, Fetch Next Control Code P4A 13 14 MSb Execution Takes Place, Fetch Next Control Code PGDx = Input 2010 Microchip Technology Inc. ...
Page 7
... Program/Verify Entry Code = 4D434851h PGDx 0 1 b31 b30 PGCx P18 2010 Microchip Technology Inc. PIC24FXXKA2XX interval of at least P19 and P7 must elapse before presenting data on PGDx. Signals appearing on PGCx before P7 has elapsed would not be interpreted as valid. 3.3.2 HIGH-VOLTAGE ICSP ENTRY Entering the ICSP Program/Verify mode, using the V pin is the same as entering the mode using MCLR ...
Page 8
... Erase four rows of code memory. Erase two rows of code memory. Erase a row of code memory. Erase all the Configuration registers (except the code-protect fuses). Erase Configuration registers except FBS and FGS. NVMCON VALUES FOR WRITE OPERATIONS Write Operation 2010 Microchip Technology Inc. ...
Page 9
... NOP Clock out the contents of the VISI register. 0001 <VISI> 0000 000000 NOP 2010 Microchip Technology Inc. PIC24FXXKA2XX FIGURE 3-6: Write 4064h to NVMCON SFR Set the WR bit to Initiate Erase Delay P11 + P10 Time Description 0x200 #0x4064, W10 W10, NVMCON #< ...
Page 10
... Finally, in Step 10, repeat Steps 3 through 9 until all of the code memory is programmed. FIGURE 3-7: PACKED INSTRUCTION WORDS IN W0: LSW0 W1 MSB1 W2 LSW1 W3 LSW2 W4 MSB3 W5 LSW3 Description 0x200 #0x4004, W10 W10, NVMCON #<DestinationAddress23:16>, W0 W0, TBLPAG #<DestinationAddress15:0>, W7 2010 Microchip Technology Inc MSB0 MSB2 ...
Page 11
... NOP Step 9: Reset device internal PC. 0000 040200 GOTO 0000 000000 NOP Step 10: Repeat Steps 3 through 9 until the entire code memory is programmed. 2010 Microchip Technology Inc. PIC24FXXKA2XX Description #<LSW0>, W0 #<MSB1:MSB0>, W1 #<LSW1>, W2 #<LSW2>, W3 #<MSB3:MSB2>, W4 #<LSW3> [W6++], [W7] [W6++], [W7++] [W6++], [++W7] ...
Page 12
... PROGRAM CODE MEMORY FLOW LoopCount = LoopCount + 1 DS39991A-page 12 Start LoopCount = 0 Configure Device for Writes Load 2 Bytes to Write Buffer at <Addr> All No bytes written? Yes Start Write Sequence and Poll for WR bit to be Cleared All No locations done? Yes End 2010 Microchip Technology Inc. ...
Page 13
... Reset vector is exited. In Step 2, the NVMCON register is initialized for programming code memory. In Step 3, the 24-bit starting destination address for programming is loaded into the TBLPAG register and W7 register. Note: The TBLPAG register must be loaded with F8h. 2010 Microchip Technology Inc. PIC24FXXKA2XX TABLE 3-6: Configuration Registers FGS FOSCSEL ...
Page 14
... Step 10: Repeat Steps 5 through 9 to write other fuses, Load W6 with their respective values and W7 with their respective addresses. DS39991A-page 14 Command (Binary) 0x200 #0x0000, W7 #0x4004, W10 W10, NVMCON #0xF8, W6 W0, TBLPAG #<FBS_VALUE>, W6 W6, [W7++] NVMCON, #WR 0x200 NVMCON, W2 W2, VISI 0x200 2010 Microchip Technology Inc. ...
Page 15
... FOSCSEL<2:0> Oscillator Selection bits Note 1: The MCLRE fuse can only be changed when using the V from accidentally locking out the device from low-voltage test entry. 2010 Microchip Technology Inc. PIC24FXXKA2XX Description Brown-out Reset Enable bits 11 = Brown-out Reset is enabled in hardware; SBOREN bit is disabled 10 = Brown-out Reset is enabled only while device is active and disabled in Sleep ...
Page 16
... Primary oscillator/external clock input frequency is less than 100 kHz 00 = Reserved; do not use Power-up Timer Enable bit 0 = PWRT is disabled 1 = PWRT is enabled Secondary Oscillator Select bit 1 = Secondary oscillator is configured for high-power operation 0 = Secondary oscillator is configured for low-power operation -Based Test mode entry. This prevents a user PP 2010 Microchip Technology Inc. ...
Page 17
... WDTPS<3:0> FWDT<3:0> WINDIS FWDT<6> Note 1: The MCLRE fuse can only be changed when using the V from accidentally locking out the device from low-voltage test entry. 2010 Microchip Technology Inc. PIC24FXXKA2XX Description Watchdog Timer Postscale Select bits 1111 = 1:32,768 1110 = 1:16,384 • ...
Page 18
... VISI register, using the REGOUT command. Step 4 is repeated until the required amount of code memory is read. Description 0x200 #<SourceAddress23:16>, W0 W0, TBLPAG #<SourceAddress15:0>, W6 #VISI, W7 [W6], [W7] [W6++], [W7] [++W6], [W7--] [W6++], [W7] 0x200 3-7). In Step 3, the Write 2010 Microchip Technology Inc. ...
Page 19
... Step 4: Repeat Step 3 to read other fuses. Load W6 with their respective address. Step 5: Reset device internal PC. 0000 040200 GOTO 0000 000000 NOP 2010 Microchip Technology Inc. PIC24FXXKA2XX Table 3-10 provides the ICSP programming details for reading all of the Configuration registers. Note: The TBLPAG ...
Page 20
... PGCx and PGDx before removing V FIGURE 3-10: Section 3.8 MCLR verified V DD PGDx PGCx Failure Report Error from IH Figure 3-10. The only . IH EXITING ICSP™ MODE P16 P17 IHH V IH PGD = Input 2010 Microchip Technology Inc. ...
Page 21
... Byte sum of locations inclusive (all 3 bytes of code memory) CFGB = Configuration Block (masked), Byte sum of (FGS & 0x0003 + FOSCSEL & 0x0087 + FOSC & 0x00DF + FWDT & 0x00DF + FPOR & 0x00FB + FICD & 0x00C3 + FDS & 0x00FF) 2010 Microchip Technology Inc. PIC24FXXKA2XX 4.1 Checksums 4.1.1 CHECKSUM COMPUTATION Checksums for the PIC24FXXKA2XX family are 16 bits ...
Page 22
... Units Conditions V Normal programming A — mA — V — V — V — meet AC specifications ns — ns — ns — ns — ns — ns — ns — ns — ns — ms — ns — ms — ms — ms — s — ns — s — ns — ms — ms — 2010 Microchip Technology Inc. ...
Page 23
... APPENDIX A: REVISION HISTORY Rev A Document (9/2010) Original version of this document; takes all information specific to PIC24XXKA20X family devices, originally found in DS39919, and created a new specification. No technical information regarding the devices or their programming has changed. 2010 Microchip Technology Inc. PIC24FXXKA2XX DS39991A-page 23 ...
Page 24
... PIC24FXXKA2XX NOTES: DS39991A-page 24 2010 Microchip Technology Inc. ...
Page 25
... PICtail, REAL ICE, rfLAB, Select Mode, Total Endurance, TSHARC, UniWinDriver, WiperLock and ZENA are trademarks of Microchip Technology Incorporated in the U.S.A. and other countries. SQTP is a service mark of Microchip Technology Incorporated in the U.S.A. All other trademarks mentioned herein are property of their respective companies. ...
Page 26
... Philippines - Manila Tel: 63-2-634-9065 Fax: 63-2-634-9069 Singapore Tel: 65-6334-8870 Fax: 65-6334-8850 Taiwan - Hsin Chu Tel: 886-3-6578-300 Fax: 886-3-6578-370 Taiwan - Kaohsiung Tel: 886-7-213-7830 Fax: 886-7-330-9305 Taiwan - Taipei Tel: 886-2-2500-6610 Fax: 886-2-2508-0102 Thailand - Bangkok Tel: 66-2-694-1351 Fax: 66-2-694-1350 2010 Microchip Technology Inc. 08/04/10 ...