PIC16C432-E/P Microchip Technology, PIC16C432-E/P Datasheet

IC MCU CMOS 8-BIT 20MHZ 2K 20DIP

PIC16C432-E/P

Manufacturer Part Number
PIC16C432-E/P
Description
IC MCU CMOS 8-BIT 20MHZ 2K 20DIP
Manufacturer
Microchip Technology
Series
PIC® 16Cr
Datasheets

Specifications of PIC16C432-E/P

Core Processor
PIC
Core Size
8-Bit
Speed
20MHz
Connectivity
LIN (Local Interconnect Network)
Peripherals
Brown-out Detect/Reset, POR, WDT
Number Of I /o
12
Program Memory Size
3.5KB (2K x 14)
Program Memory Type
OTP
Ram Size
128 x 8
Voltage - Supply (vcc/vdd)
4.5 V ~ 5.5 V
Oscillator Type
External
Operating Temperature
-40°C ~ 125°C
Package / Case
20-DIP (0.300", 7.62mm)
For Use With
AC164029 - MODULE SKT PROMATEII 20DIP/SSOPDVA16XP201 - ADAPTER DEVICE FOR MPLAB-ICE
Lead Free Status / RoHS Status
Request inventory verification / Request inventory verification
Eeprom Size
-
Data Converters
-
PIC16C432
Data Sheet
OTP 8-Bit CMOS MCU
with LIN Transceiver
Preliminary
2002 Microchip Technology Inc.
DS41140B

Related parts for PIC16C432-E/P

PIC16C432-E/P Summary of contents

Page 1

... Microchip Technology Inc. PIC16C432 Data Sheet OTP 8-Bit CMOS MCU with LIN Transceiver Preliminary DS41140B ...

Page 2

... Serialized Quick Turn Programming (SQTP service mark of Microchip Technology Incorporated in the U.S.A. All other trademarks mentioned herein are property of their respective companies. © 2002, Microchip Technology Incorporated, Printed in the U.S.A., All Rights Reserved. Printed on recycled paper. Microchip received QS-9000 quality system ...

Page 3

... OTP 8-Bit CMOS MCU with LIN Transceiver Devices included in this Data Sheet: • PIC16C432 High Performance RISC CPU: • Only 35 instructions to learn • All single cycle instructions (200 ns), except for program branches which are two-cycle • Operating speed MHz clock input ...

Page 4

... PIC16C432 Table of Contents 1.0 General Description...................................................................................................................................................................... 3 2.0 PIC16C432 Device Varieties ........................................................................................................................................................ 5 3.0 Memory Organization ................................................................................................................................................................... 7 4.0 I/O Ports ..................................................................................................................................................................................... 17 5.0 LIN Transceiver .......................................................................................................................................................................... 23 6.0 Timer0 Module ........................................................................................................................................................................... 27 7.0 Comparator Module.................................................................................................................................................................... 33 8.0 Voltage Reference Module......................................................................................................................................................... 41 9.0 Special Features of the CPU ...................................................................................................................................................... 43 10.0 Instruction Set Summary ............................................................................................................................................................ 59 11.0 Development Support................................................................................................................................................................. 73 12 ...

Page 5

... PIC16C432 microcontrollers typically achieve a 2:1 code compression and a 4:1 speed improvement over other 8-bit microcontrollers in their class. The PIC16C432 has 12 I/O pins and an 8-bit timer/ counter with an 8-bit programmable prescaler. In addi- tion, the PIC16C432 adds two analog comparators with a programmable on-chip voltage reference module. ...

Page 6

... PIC16C432 NOTES: DS41140B-page 4 Preliminary 2002 Microchip Technology Inc. ...

Page 7

... PIC16C432 DEVICE VARIETIES A variety of frequency ranges and packaging options are available. Depending on application and production requirements, the proper device option can be selected using the information in the PIC16C432 Product Identification System section at the end of this data sheet. 2.1 UV Erasable Devices The UV erasable version, offered in the CERDIP pack- age is optimal for prototype development and pilot programs ...

Page 8

... PIC16C432 NOTES: DS41140B-page 6 Preliminary 2002 Microchip Technology Inc. ...

Page 9

... Bank 1. In the microcontroller, address space F0h-FFh (Bank 1) is mapped to 70-7Fh (Bank 0) as common RAM. 3.2.1 GENERAL PURPOSE REGISTER FILE The register file is organized as 128 the PIC16C432. Each is accessed either directly or indi- rectly through (Section 3.4). 000h 0004h 0005h 07FFh ...

Page 10

... PIC16C432 FIGURE 3-2: DATA MEMORY MAP FOR THE PIC16C432 File Address (1) 00h INDF INDF 01h TMR0 OPTION 02h PCL PCL 03h STATUS STATUS 04h FSR FSR 05h PORTA TRISA 06h PORTB TRISB 07h 08h 09h 0Ah PCLATH PCLATH 0Bh INTCON INTCON ...

Page 11

... TABLE 3-1: SPECIAL REGISTERS FOR THE PIC16C432 Address Name Bit 7 Bit 6 Bank 0 00h INDF Addressing this location uses contents of FSR to address data memory (not a physical register) 01h TMR0 Timer0 Module’s Register 02h PCL Program Counter's (PC) Least Significant Byte (2) (2) 03h ...

Page 12

... Reserved Reserved IRP RP1 bit7 bit 7 IRP: The IRP bit is reserved on the PIC16C432, always maintain this bit clear bit 6-5 RP1:RP0: Register Bank Select bits (used for direct addressing Bank 3 (180h - 1FFh Bank 2 (100h - 17Fh Bank 1 (80h - FFh Bank 0 (00h - 7Fh) Each bank is 128 bytes ...

Page 13

... R/W-1 R/W-1 R/W-1 T0CS T0SE PSA TMR0 Rate WDT Rate 128 256 1 : 128 W = Writable bit U = Unimplemented bit, read as ‘0’ ’1’ = Bit is set ’0’ = Bit is cleared Preliminary PIC16C432 R/W-1 R/W-1 R/W-1 PS2 PS1 PS0 bit0 x = Bit is unknown DS41140B-page 11 ...

Page 14

... PIC16C432 3.2.2.3 INTCON Register The INTCON register is a readable and writable register which contains the various enable and flag bits for all interrupt sources, except the comparator module. See Section 3.2.2.4 and Section 3.2.2.5 description of the comparator enable and flag bits. ...

Page 15

... Bit is cleared U-0 U-0 U-0 U-0 — — — — Writable bit U = Unimplemented bit, read as ‘0’ ’1’ = Bit is set ’0’ = Bit is cleared Preliminary PIC16C432 U-0 U-0 — — bit0 x = Bit is unknown U-0 U-0 — — bit0 x = Bit is unknown DS41140B-page 13 ...

Page 16

... PIC16C432 3.2.2.6 PCON Register The PCON register contains flag bits to differentiate between a Power-on Reset, an external MCLR Reset, WDT Reset or a Brown-out Reset. Note: BOD is unknown on Power-on Reset. It must then be set by the user and checked on subsequent RESETS to see if BOD is cleared, indicating a brown-out occurred. The BOD status bit is a " ...

Page 17

... Microchip Technology Inc. 3.3.2 STACK The PIC16C432 family has an 8 level deep x 13-bit wide hardware stack (Figure 3-1 and Figure 3-1). The stack space is not part of either program or data space and the stack pointer is not readable or writable. The PC is PUSHed onto the stack when a CALL instruction is executed or an interrupt causes a branch ...

Page 18

... Writing to the INDF register indirectly results in a no- operation (although status bits may be affected). An effective 9-bit address is obtained by concatenating the 8-bit FSR register and the IRP bit (STATUS<7>), as shown in Figure 3-4. However, IRP is not used in the PIC16C432. FIGURE 3-4: DIRECT/INDIRECT ADDRESSING PIC16C432 Direct Addressing (1) RP1 RP0 from opcode 6 ...

Page 19

... I/O PORTS The PIC16C432 parts have two ports, PORTA and PORTB. Some pins for these I/O ports are multiplexed with an alternate function for the peripheral features on the device. In general, when a peripheral is enabled, that pin may not be used as a general purpose I/O pin. ...

Page 20

... PIC16C432 FIGURE 4-2: BLOCK DIAGRAM OF RA2 PIN Data Bus PORTA Data Latch TRISA Q CK TRIS Latch Vss Analog Input Mode Schmitt Trigger Input Buffer RD TRISA PORTA To Comparator V ROE V REF FIGURE 4-3: BLOCK DIAGRAM OF RA3 PIN Data Bus D Q Comparator Output WR PORTA ...

Page 21

... RA4 RA3 RA2 LINRX — TRISA4 TRISA3 TRISA2 TLINRX — — CIS CM2 CM1 VRR — VR3 VR2 VR1 Preliminary PIC16C432 RA4 Pin N Vss Schmitt Trigger Input Buffer D EN output. REF Value on Value on: Bit 0 All Other POR RESETS RA0 ---x 0000 ---u 0000 ...

Page 22

... PIC16C432 4.2 PORTB and TRISB Registers PORTB is an 8-bit wide, bi-directional port. The corresponding data direction register is TRISB. A ’1’ in the TRISB register puts the corresponding output driver in a High Impedance mode. A ’0’ in the TRISB register puts the contents of the output latch on the selected pin(s) ...

Page 23

... Bit 1 RB5 RB4 RB3 RB2 RB1 TRISB5 TRISB4 TRISB3 TRISB2 TRISB1 TRISB0 1111 1111 1111 1111 T0CS T0SE PSA PS2 PS1 Preliminary PIC16C432 Value on Value on: Bit 0 All Other POR RESETS RB0 xxxx xxxx uuuu uuuu PS0 1111 1111 1111 1111 DS41140B-page 21 ...

Page 24

... PIC16C432 4.3 I/O Programming Considerations 4.3.1 BI-DIRECTIONAL I/O PORTS Any instruction which writes, operates internally as a read followed by a write operation. The BCF and BSF instructions, for example, read the register into the CPU, execute the bit operation and write the result back to the register ...

Page 25

... LINTX bit and only a limited current can flow into the receiver connected to the LIN pin. 5.5 Wake-up From SLEEP Upon Bus Activity The PIC16C432 can wake-up from SLEEP upon bus activity in two ways: 1. With the use of the comparators. 2. Connecting BACT to one of PORTB<0,4:7> ...

Page 26

... PIC16C432 FIGURE 5-1: TYPICAL LIN BUS MASTER APPLICATION Note 1: Refer to LIN Bus Specification. 2: BACT pin should be left open if not used. FIGURE 5-2: TYPICAL LIN BUS SLAVE APPLICATION Note 1: May not be required. 2: BACT pin should be left open if not used. DS41140B-page 24 +5V +12V ...

Page 27

... FIGURE 5-3: LIN BUS APPLICATION USING WAKE-UP INTERRUPT Note 1: May not be required. 2: For master configuration only. 2002 Microchip Technology Inc. +5V +12V BAT Note 1 BACT RB0 1k LIN To LIN Bus Note Preliminary PIC16C432 DS41140B-page 25 ...

Page 28

... PIC16C432 REGISTER 5-1: LININTF REGISTER (ADDRESS: 90h) U-0 — bit 7 bit 7-3 Unimplemented: Read as '0' bit 2 LINTX: LIN Bus Transmit bit 1 = LIN Bus line is high 0 = LIN Bus line is low bit 1 Unimplemented: Read as '0' bit 0 LINVDD: LIN Bus Transceiver supplied to the LIN Bus transceiver via microcontroller ...

Page 29

... MOVF TMR0,W MOVF TMR0,W MOVF TMR0,W T0+2 NT0 Write TMR0 Read TMR0 Read TMR0 Read TMR0 executed reads NT0 reads NT0 reads NT0 Preliminary PIC16C432 Data Bus 8 TMR0 PS OUT Set Flag bit T0IF on Overflow PC+4 PC+5 PC+6 MOVF TMR0,W T0 NT0+1 NT0+2 ...

Page 30

... PIC16C432 FIGURE 6-3: TIMER0 TIMING: INTERNAL CLOCK/PRESCALE 1 (Program Counter) PC-1 PC Instruction MOVWF TMR0 Fetch TMR0 T0 T0+1 Instruction Execute FIGURE 6-4: TIMER0 INTERRUPT TIMING OSC1 (3) CLKOUT TMR0 Timer FEh 1 T0IF bit (INTCON<2>) GIE bit (INTCON<7>) INSTRUCTION FLOW PC PC Instruction Inst (PC) Fetched Instruction ...

Page 31

... TMR0 is actually incremented. Figure 6-5 shows the delay from the external clock edge to the timer incrementing ( (Duration OSC OSC Preliminary PIC16C432 (and a small RC delay of OSC Small pulse misses sampling There- OSC max. OSC DS41140B-page 29 ...

Page 32

... PIC16C432 6.3 Prescaler An 8-bit counter is available as a prescaler for the Timer0 module postscaler for the Watchdog Timer, respectively (Figure 6-6). For simplicity, this counter is being referred to as “prescaler” throughout this data sheet. Note that there is only one prescaler available, which is mutually exclusive between the Timer0 module and the Watchdog Timer ...

Page 33

... INTE RBIE T0IF INTF T0CS T0SE PSA PS2 PS1 — TRISA4 TRISA3 TRISA2 TLINRX Preliminary PIC16C432 CHANGING PRESCALER (WDT TIMER0) ;Clear WDT and ;prescaler ;Select TMR0, new ;prescale value and ;clock source Value on Value on: Bit 0 All Other POR RESETS xxxx xxxx uuuu uuuu ...

Page 34

... PIC16C432 NOTES: DS41140B-page 32 Preliminary 2002 Microchip Technology Inc. ...

Page 35

... Microchip Technology Inc. two analog R-0 U-0 U-0 R/W-0 — — CIS - Writable bit U = Unimplemented bit, read as ‘0’ ’1’ = Bit is set ’0’ = Bit is cleared Preliminary PIC16C432 R/W-0 R/W-0 R/W-0 CM2 CM1 CM0 bit0 x = Bit is unknown DS41140B-page 33 ...

Page 36

... PIC16C432 FIGURE 7-1: COMPARATOR I/O OPERATING MODES RA0/AN0 RA3/AN3 LINRX RA2/AN2 Comparators Reset RA0/AN0 RA3/AN3 LINRX RA2/AN2 Two Common Reference Comparators RA0/AN0 RA3/AN3 LINRX RA2/AN2 Two Common Reference Comparators RA0/AN0 RA3/AN3 LINRX RA2/AN2 One Independent Comparators Legend Analog Input, Port Reads ‘0’ Always ...

Page 37

... Comparator Reference An external or internal reference signal may be used, depending on the Comparator Operating mode. The analog signal that is present compared to the IN signal and the digital output of the comparator IN is adjusted accordingly (Figure 7-2). 2002 Microchip Technology Inc less Preliminary PIC16C432 DS41140B-page 35 ...

Page 38

... PIC16C432 FIGURE 7-2: SINGLE COMPARATOR Output 7.3.1 EXTERNAL REFERENCE SIGNAL When external voltage references are used, the comparator module can be configured to have the com- parators operate from the same, or different reference sources. However, threshold detector applications may require the same reference. The reference signal must ...

Page 39

... Pins configured as digital inputs will convert an analog input according to the Schmitt Trigger input specification. 2: Analog levels on any pin that is defined as a digital input may cause the input buffer to consume more current than is speci- fied. 2002 Microchip Technology Inc. Preliminary PIC16C432 DS41140B-page 37 ...

Page 40

... PIC16C432 FIGURE 7-3: COMPARATOR OUTPUT BLOCK DIAGRAM To RA3 or RA4 Pin Data Bus RD CMCON Set CMIF bit DS41140B-page 38 Port Pins MULTIPLEX + From Other EN Comparator CL RD CMCON NRESET Preliminary - 2002 Microchip Technology Inc. ...

Page 41

... Any external the PEIE bit component connected to an analog input pin, such as a capacitor or a Zener diode, should have very little leakage current. Preliminary PIC16C432 the input voltage deviates from this impedance DS41140B-page 39 is ...

Page 42

... PIC16C432 FIGURE 7-4: ANALOG INPUT MODEL R < PIN Legend C PIN LEAKAGE TABLE 7-1: REGISTERS ASSOCIATED WITH COMPARATOR MODULE Address Name Bit 7 Bit 6 1Fh CMCON C2OUT C1OUT 9Fh VRCON VREN VROE 0Bh INTCON GIE PEIE 0Ch PIR1 — CMIF 8Ch PIE1 — ...

Page 43

... DD V [3: <3:0>/ 24 REF 1 <3:0>/ 32 REF Writable bit U = Unimplemented bit, read as ‘0’ ’1’ = Bit is set ’0’ = Bit is cleared 16 Stages 16-1 Analog Mux Preliminary PIC16C432 = (V <3:0>/24 REF 1/ <3:0>/32 REF DD R when changing the V output REF = 5.0V. DD R/W-0 R/W-0 R/W ...

Page 44

... PIC16C432 EXAMPLE 8-1: VOLTAGE REFERENCE CONFIGURATION MOVLW 0x02 ; 4 Inputs Muxed MOVWF CMCON ; to 2 comps. BSF STATUS,RP0 ; go to Bank 1 MOVLW 0x07 ; RA3-RA0 are MOVWF TRISA ; outputs MOVLW 0xA6 ; enable V MOVWF VRCON ; low range ; set V R BCF STATUS,RP0 ; go to Bank 0 CALL DELAY10 ; 10 s delay 8 ...

Page 45

... CPU Special circuits to deal with the needs of real-time applications are what sets a microcontroller apart from other processors. The PIC16C432 device has a host of such features intended to maximize system reliability, minimize cost through elimination of external compo- nents, provide power saving operating modes and offer code protection ...

Page 46

... PIC16C432 REGISTER 9-1: CONFIGURATION WORD (2) (2) CP1 CP0 CP1 CP0 bit 13 bit 13-8 CP1:CP0 Pairs: Code protection bit pairs bit 5-4 Code protection for 2K program memory bits 11 = Program memory code protection off 10 = 0400h-07FFh code protected 01 = 0200h-07FFh code protected 00 = 0000h-07FFh code protected ...

Page 47

... Oscillator Configurations 9.2.1 OSCILLATOR TYPES The PIC16C432 can be operated in four different oscillator options. The user can program two configuration bits (FOSC1 and FOSC0) to select one of these four modes: • Low Power Crystal • Crystal/Resonator • High Speed Crystal/Resonator • Resistor/Capacitor 9 ...

Page 48

... C take into account variation due to tolerance of external R and C components used. Figure 9-5 shows how the R/C combination is connected to the PIC16C432. For R values below 2 the oscillator operation may EXT The 10 k become unstable, or stop completely ...

Page 49

... RESET The PIC16C432 differentiates between various kinds of RESET: a) Power-on Reset (POR) b) MCLR Reset during normal operation c) MCLR Reset during SLEEP d) WDT Reset (normal operation) e) WDT wake-up (SLEEP) f) Brown-out Reset (BOD) Some registers are not affected in any RESET condi- tion. Their status is unknown on POR and unchanged in any other RESET. Most other registers are RESET to a “ ...

Page 50

... Power-on Reset or wake-up from is required. See SLEEP. 9.4.4 BROWN-OUT RESET (BOD) The PIC16C432 has an on-chip Brown-out Reset cir- cuitry. A configuration bit, BOREN, can disable (if clear/ programmed), or enable (if set) the Brown-out Reset circuitry eter D005) for greater than parameter (T Table 12-6, the brown-out situation will reset the chip. A RESET won’ ...

Page 51

... Power-on Reset Illegal set on POR Illegal set on POR Brown-out Reset WDT Reset WDT Wake-up MCLR Reset during normal operation MCLR Reset during SLEEP Preliminary PIC16C432 may have gone too DD Wake-up Brown-out Reset from SLEEP 1024 T 1024 T OSC OSC 72 ms — ...

Page 52

... PIC16C432 TABLE 9-5: INITIALIZATION CONDITION FOR SPECIAL REGISTERS Condition Power-on Reset MCLR Reset during normal operation MCLR Reset during SLEEP WDT Reset WDT Wake-up Brown-out Reset Interrupt Wake-up from SLEEP Legend unchanged unknown unimplemented bit, reads as ‘0’. Note 1: When the wake-up is due to an interrupt and global enable bit GIE is set, the PC is loaded with the inter- rupt vector (0004h) after execution of PC+1 ...

Page 53

... V DD MCLR INTERNAL POR PWRT TIMEOUT OST TIMEOUT INTERNAL RESET FIGURE 9-10: TIMEOUT SEQUENCE ON POWER-UP (MCLR TIED MCLR INTERNAL POR PWRT TIMEOUT OST TIMEOUT INTERNAL RESET 2002 Microchip Technology Inc. T PWRT T OST T PWRT T OST T PWRT T OST Preliminary PIC16C432 ): CASE CASE DS41140B-page 51 ...

Page 54

... Technology’s MCP809 microcontroller supervisor. The MCP8XX and MCP1XX families of supervisors provide push-pull and open collector outputs with both high and DD low active RESET pins. There are 7 different trip point selections to accommodate 5V and 3V systems. Preliminary MCLR 40k PIC16C432 MCLR PIC16C432 2002 Microchip Technology Inc. ...

Page 55

... Interrupts The PIC16C432 has 4 sources of interrupt: • External interrupt RB0/INT • TMR0 overflow interrupt • PORTB change interrupts (pins RB<7:4>) • Comparator interrupt • LIN Bus wake-up can be wired to RB0, or compar- ator The interrupt control register (INTCON) and the Periph- eral Interrupt Register (PIR1) record individual interrupt requests in flag bits ...

Page 56

... PIC16C432 9.5.1 RB0/INT INTERRUPT External interrupt on RB0/INT pin is edge triggered; either rising if INTEDG bit (OPTION<6>) is set, or fall- ing, if INTEDG bit is clear. When a valid edge appears on the RB0/INT pin, the INTF bit (INTCON<1>) is set. This interrupt can be disabled by clearing the INTE control bit (INTCON<4>). The INTF bit must be cleared in software in the Interrupt Service Routine before re- enabling this interrupt ...

Page 57

... STATUS_TEMP ;save status to bank 0 F ;register : : (ISR) : SWAP STATUS_TEMP ;swap STATUS_TEMP regis ter ;into W, sets bank to original ;state MOVW STATUS ;move W into STATUS regis- F ter SWAP W_TEMP,F ;swap W_TEMP F SWAP W_TEMP,W ;swap W_TEMP into W F 2002 Microchip Technology Inc. Preliminary PIC16C432 DS41140B-page 55 ...

Page 58

... PIC16C432 9.7 Watchdog Timer (WDT) The Watchdog Timer is a free running on-chip RC oscil- lator which does not require any external components. This RC oscillator is separate from the RC oscillator of the CLKIN pin. That means that the WDT will run even if the clock on the OSC1 and OSC2 pins of the device ...

Page 59

... SLEEP. The SLEEP instruction is completely executed. The WDT is cleared when the device wakes up from SLEEP, regardless of the source of wake-up. Preliminary PIC16C432 instruction is being executed, the SLEEP instruction. If the GIE bit is SLEEP is not desirable, the ...

Page 60

... Least Significant 4 bits of the ID locations are used. 9.11 In-Circuit Serial Programming The PIC16C432 microcontroller can be serially programmed while in the end application circuit. This is simply done with two lines for clock and data, and three other lines for power, ground, and the programming voltage ...

Page 61

... INSTRUCTION SET SUMMARY Each PIC16C432 instruction is a 14-bit word divided into an OPCODE which specifies the instruction type and one or more operands which further specify the operation of the instruction. The PIC16C432 instruction set summary in Table 10-2 lists byte-oriented, bit- oriented, and ...

Page 62

... PIC16C432 FIGURE 10-1: GENERAL FORMAT FOR INSTRUCTIONS Byte-oriented file register operations OPCODE d f (FILE #) for destination for destination 7-bit file register address Bit-oriented file register operations OPCODE b (BIT #) f (FILE #) b = 3-bit bit address f = 7-bit file register address Literal and control operations General ...

Page 63

... TABLE 10-2: PIC16C432 INSTRUCTION SET Mnemonic, Description Operands BYTE-ORIENTED FILE REGISTER OPERATIONS ADDWF f, d Add W and f ANDWF f, d AND W with f CLRF f Clear f CLRW - Clear W COMF f, d Complement f DECF f, d Decrement f DECFSZ f, d Decrement f, Skip if 0 INCF f, d Increment f INCFSZ f, d Increment f, Skip if 0 ...

Page 64

... PIC16C432 10.1 Instruction Descriptions ADDLW Add Literal and W Syntax: [ label ] ADDLW Operands 255 Operation: ( (W) Status Affected: C, DC, Z Encoding: 11 111x Description: The contents of the W register are added to the eight bit literal ’k’ and the result is placed in the W regis- ter. Words: 1 Cycles: ...

Page 65

... Description: = 0xC7 Words: = 0x47 Cycles: Example ffff 7 = 0x0A = 0x8A Preliminary PIC16C432 Bit Test, Skip if Clear [ label ] BTFSC f 127 skip if (f<b> None 01 10bb bfff ffff If bit ’b’ in register ’f’ is ’0’, then the next instruction is skipped. If bit ’b’ is ’0’, then the next instruction ...

Page 66

... PIC16C432 BTFSS Bit Test f, Skip if Set Syntax: [ label ] BTFSS f,b Operands 127 0 b < 7 Operation: skip if (f<b> Status Affected: None Encoding: 01 11bb Description: If bit ’b’ in register ’f’ is ’1’ then the next instruction is skipped. If bit ’b’ is ’1’, then the next instruction ...

Page 67

... Decrement register ’f’. If ’d’ the 0100 result is stored in the W register. If ’d’ the result is stored back in register ’f’. Words: 1 Cycles: 1 Example DECF Before Instruction After Instruction Preliminary PIC16C432 f,d f 127 [0,1] (dest) 1001 dfff ffff REG1,0 REG1 = 0x13 REG1 = 0x13 W = 0xEC f ...

Page 68

... PIC16C432 DECFSZ Decrement f, Skip if 0 Syntax: [ label ] DECFSZ f,d Operands 127 d [0,1] Operation: ( (dest); Status Affected: None Encoding: 00 1011 Description: The contents of register ’f’ are decremented. If ’d’ the result is placed in the W register. If ’d’ the result is placed back in register ’ ...

Page 69

... Words: Cycles: Example CNT, LOOP IORWF Syntax: Operands: Operation: Status Affected: Encoding: Description: Words: Cycles: Example Preliminary PIC16C432 Inclusive OR Literal with W [ label ] IORLW 255 (W) .OR 1000 kkkk kkkk The contents of the W register are OR’ed with the eight bit literal 'k'. The result is placed in the W reg- ister ...

Page 70

... PIC16C432 MOVLW Move Literal to W Syntax: [ label ] MOVLW k Operands 255 Operation: k (W) Status Affected: None Encoding: 11 00xx Description: The eight bit literal ’k’ is loaded into W register. The don’t cares will assemble as 0’s. Words: 1 Cycles: 1 Example MOVLW 0x5A After Instruction ...

Page 71

... Cycles: Example ® prod- TABLE 1001 RETURN Syntax: Operands: Operation: Status Affected: Encoding: Description: Words: Cycles: Example Preliminary PIC16C432 Return with Literal label ] RETLW 255 k (W); TOS PC None 11 01xx kkkk kkkk The W register is loaded with the eight bit literal ’k’. The program counter is loaded from the top of the stack (the return address) ...

Page 72

... PIC16C432 RLF Rotate Left f through Carry Syntax: [ label ] RLF Operands 127 d [0,1] Operation: See description below Status Affected: C Encoding: 00 1101 Description: The contents of register ’f’ are rotated one bit to the left through the Carry Flag. If ’d’ the result is placed in the W register. If ’d’ the result is stored back in regis- ter ’ ...

Page 73

... SUBWF Before Instruction REG1 = W C After Instruction REG1 W C Example 2: Before Instruction REG1 = W C After Instruction REG1 = W C Example 3: Before Instruction REG1 = W C After Instruction REG1 = W C Preliminary PIC16C432 SUBWF f,d 127 (dest) 0010 dfff ffff REG1 result is positive result is zero ...

Page 74

... PIC16C432 SWAPF Swap Nibbles in f Syntax: [ label ] SWAPF f,d Operands 127 d [0,1] Operation: (f<3:0>) (dest<7:4>), (f<7:4>) (dest<3:0>) Status Affected: None Encoding: 00 1110 Description: The upper and lower nibbles of register ’f’ are exchanged. If ’d’ the result is placed in W register. If ’d’ the result is placed in regis- ter ’ ...

Page 75

... Microchip’s PIC17CXXX and PIC18CXXX family of microcontrollers, respectively. These compilers provide powerful integration capabilities and ease of use not found with other compilers. For easier source level debugging, the compilers pro- vide symbol information that is compatible with the MPLAB IDE memory display. Preliminary PIC16C432 DS41140B-page 73 ...

Page 76

... PIC16C432 11.4 MPLINK Object Linker/ MPLIB Object Librarian The MPLINK object linker combines relocatable objects created by the MPASM assembler and the MPLAB C17 and MPLAB C18 C compilers. It can also link relocatable objects from pre-compiled libraries, using directives from a linker script. The MPLIB object librarian is a librarian for pre- compiled code to be used with the MPLINK object linker ...

Page 77

... Some of the features include a RS-232 interface, push button switches, a potentiometer for simulated analog input, a serial EEPROM to demonstrate usage of the I and separate headers for connection to an LCD module and a keypad. and Preliminary PIC16C432 PIC16C62X, PIC16C71, PIC16C8X, that supports the PIC16C62, ...

Page 78

... PIC16C432 11.13 PICDEM 3 Low Cost PIC16CXXX Demonstration Board The PICDEM 3 demonstration board is a simple dem- onstration board that supports the PIC16C923 and PIC16C924 in the PLCC package. It will also support future 44-pin PLCC microcontrollers with an LCD Mod- ule. All the necessary hardware and software is included to run the basic demonstration programs ...

Page 79

... DEVELOPMENT TOOLS FROM MICROCHIP MCP2510 MCRFXXX HCSXXX 93CXX 25CXX/ 24CXX/ PIC18FXXX PIC18CXX2 PIC17C7XX PIC17C4X PIC16C9XX PIC16F8XX PIC16C8X PIC16C7XX PIC16C7X PIC16F62X PIC16CXXX PIC16C6X PIC16C5X PIC14000 PIC12CXXX Tools Software Emulators Debugger Programmers 2002 Microchip Technology Inc. Kits Eval and Boards Preliminary PIC16C432 Demo DS41140B-page 77 ...

Page 80

... PIC16C432 NOTES: DS41140B-page 78 Preliminary 2002 Microchip Technology Inc. ...

Page 81

... Microchip Technology Inc. (except V and MCLR) ....................................................-0. (Note 2) ..............................................................................................0 to +14V < > V ...................................................................................... 200 mA I BAT < > ............................................................................. 200 BAT ) DD > .......................................................................... ................................................................................. ..................................................................... 200 ................................................................ 200 mA DD )......................................................................................... 200 mA BAT )...................................................................................... 1.8 mA BAT should be used when applying a “low” level to the MCLR pin, rather than pulling Preliminary PIC16C432 +0. DS41140B-page 79 ...

Page 82

... PIC16C432 FIGURE 12-1: PIC16C432 VOLTAGE-FREQUENCY GRAPH, -40 C 6.0 5.5 5.0 4 (Volts) 4.0 3.5 3.0 2.5 2.0 0 Note 1: The shaded region indicates the permissible combinations of voltage and frequency. 2: The maximum rated speed of the part limits the permissible combinations of voltage and frequency. Please reference the Product Identification System section for the maximum rated speed of the parts. ...

Page 83

... DC CHARACTERISTICS: PIC16C432 (Industrial, Extended) DC CHARACTERISTICS Param Sym Characteristic No. D001 V Supply Voltage DD D001A V Battery Supply Voltage BAT D002 V RAM Data Retention DR (1) Voltage D003 V V Start Voltage POR DD to ensure Power-on Reset D004 S V Rise Rate VDD DD to ensure Power-on Reset ...

Page 84

... Data in “Typ” column is at 5.0V unless otherwise stated. These parameters are for design guidance only and are not tested. Note oscillator configuration, the OSC1 pin is a Schmitt Trigger input not recommended that the PIC16C432 be driven with external clock in RC mode. ...

Page 85

... Data in “Typ” column is at 5.0V unless otherwise stated. These parameters are for design guidance only and are not tested. Note oscillator configuration, the OSC1 pin is a Schmitt Trigger input not recommended that the PIC16C432 be driven with external clock in RC mode. ...

Page 86

... PIC16C432 12.4 Comparator Specifications Operating Conditions: V range as described in Table 12-1, -40 C <T DD Param No. Sym Characteristics D300 V Input Offset Voltage IOFF D301 V Input Common Mode Voltage ICM D302 CMRR CMRR 300 T Response Time RESP 301 T 2 Comparator Mode Change Output Valid * These parameters are characterized but not tested. ...

Page 87

... FIGURE 12-2: LOAD CONDITIONS Load condition 1 Pin R = 464 for all pins except OSC2 and LIN bus for OSC2 output 10 nF for LIN 2002 Microchip Technology Inc. T Time osc OSC1 t0 T0CKI P Period R Rise V Valid Z Hi-Impedance Load condition Pin V SS Preliminary PIC16C432 DS41140B-page 85 ...

Page 88

... PIC16C432 12.8 Timing Diagrams and Specifications FIGURE 12-3: EXTERNAL CLOCK TIMING Q4 OSC1 CLKOUT TABLE 12-1: EXTERNAL CLOCK TIMING REQUIREMENTS Param Sym Characteristic No. 1A Fosc External CLKIN Frequency (1) Oscillator Frequency 1 Tosc External CLKIN Period (1) Oscillator Period 2 Tcy Instruction Cycle Time 3* TosL, External Clock in (OSC1) High or ...

Page 89

... Note 1: Measurements are taken in RC mode where CLKOUT output 2002 Microchip Technology Inc 20, 21 Characteristic (1) (1) (1) (1) (1) (1) T OSC (1) . OSC Preliminary PIC16C432 New Value Min Typ† Max Units — 75 200 ns — 75 200 ns — 35 100 ns — 35 100 ns — — ...

Page 90

... PIC16C432 FIGURE 12-5: RESET, WATCHDOG TIMER, OSCILLATOR START-UP TIMER AND POWER-UP TIMER TIMING V DD MCLR Internal POR 33 PWRT Timeout 32 OSC Timeout Internal RESET Watchdog Timer Reset I/O Pins FIGURE 12-6: BROWN-OUT RESET TIMING V DD TABLE 12-3: RESET, WATCHDOG TIMER, OSCILLATOR START-UP TIMER AND POWER-UP ...

Page 91

... No Prescaler 0 20* — CY With Prescaler 10* — 40* — Min. Typ. Max. Unit (Note trans_pd T trans_pdf rec_pd - rec_sym - trans_sym Preliminary PIC16C432 Max Units Conditions — ns — ns — ns — ns — prescale value ( ..., 256) Note = max(T or trans_pdr ) = max ( rec_pdr rec_pdf = rec_pdf rec_pdr = trans_pdf rans_pdr DS41140B-page 89 ...

Page 92

... PIC16C432 TABLE 12-6: LIN THERMAL CHARACTERISTICS Symbol Parameter Recovery Temperature recovery Shutdown Temperature shutdown T Thermal Recovery Time THERM FIGURE 12-8: TIMING DIAGRAM TxD (input of physical layer) t trans_pdf Bus Signal rec. threshold rec. threshold t rec_pdf RxD (physical layer output) DS41140B-page 90 Typ. Max. ...

Page 93

... LIN TRANSCEIVER SHUTDOWN HYSTERESIS (V) VS. TEMPERATURE ( 120 0 115 120 125 2002 Microchip Technology Inc. is standard deviation, over the whole temperature range. 135.2 143.1 135.2 143.1 130 135 140 145 TEMPERATURE ( C) Preliminary PIC16C432 DD 150 18.0V BAT V = 5.0V DD TXD = 0V Temp (Shutdown) Temp (Recover) 150 155 DS41140B-page 91 ...

Page 94

... PIC16C432 NOTES: DS41140B-page 92 Preliminary 2002 Microchip Technology Inc. ...

Page 95

... Please check with your Microchip Sales Office. For QTP devices, any special marking adders are included in QTP price. 2002 Microchip Technology Inc. Example PIC16C432/P301 0007CBP Example PIC16C432 -I/218 0007CBP Example PIC16C432/P301 0007CBP Preliminary PIC16C432 DS41140B-page 93 ...

Page 96

... PIC16C432 20-Lead Ceramic Dual In-Line with Window (JW) - 300 mil (CERDIP) Package drawing not available at this time. DS41140B-page 94 Preliminary 2002 Microchip Technology Inc. ...

Page 97

... D .278 .284 .289 L .022 .030 .037 c .004 .007 .010 .010 .013 .015 Preliminary PIC16C432 a A2 MILLIMETERS MIN NOM MAX 20 0.65 1.73 1.85 1.98 1.63 1.73 1.83 0.05 0.15 0.25 7.59 7.85 8.18 5.11 5.25 5.38 7.06 7.20 7.34 0.56 0.75 0.94 ...

Page 98

... PIC16C432 20-Lead Plastic Dual In-Line (P) - 300 mil (PDIP Dimension Limits Number of Pins Pitch Top to Seating Plane Molded Package Thickness Base to Seating Plane Shoulder to Shoulder Width Molded Package Width Overall Length Tip to Seating Plane Lead Thickness Upper Lead Width Lower Lead Width Overall Row Spacing § ...

Page 99

... APPENDIX A: CODE FOR LIN COMMUNICATION Please check our web site at www.microchip.com for code availability. 2002 Microchip Technology Inc. Preliminary PIC16C432 DS41140B-page 97 ...

Page 100

... PIC16C432 NOTES: DS41140B-page 98 Preliminary 2002 Microchip Technology Inc. ...

Page 101

... MOVWF Instruction ............................................................ 68 MPLAB C17 and MPLAB C18 C Compilers ....................... 73 MPLAB ICD In-Circuit Debugger ........................................ 75 MPLAB ICE High Performance Universal In-Circuit Emulator with MPLAB IDE ................................................................. 74 MPLAB Integrated Development Environment Software.... 73 MPLINK Object Linker/MPLIB Object Librarian .................. 74 N NOP Instruction .................................................................. 68 O One-Time-Programmable (OTP) Devices ............................ 5 Preliminary PIC16C432 DS41140B-page 99 ...

Page 102

... PIC16C432 OPTION Instruction............................................................. 69 OPTION Register ................................................................ 11 Oscillator Configurations ..................................................... 45 Oscillator Start-up Timer (OST) .......................................... 48 P Package Marking Information ............................................. 93 Packaging Information ........................................................ 93 PCL and PCLATH ............................................................... 15 PCON Register ................................................................... 14 PICDEM 1 Low Cost PICmicro Demonstration Board ........ 75 PICDEM 17 Demonstration Board ...................................... 76 PICDEM 2 Low Cost PIC16CXX Demonstration Board...... 75 PICDEM 3 Low Cost PIC16CXXX Demonstration Board ... 76 PICSTART Plus Entry Level Development Programmer ...

Page 103

... Microchip’s development systems software products. Plus, this line provides information on how customers ® ® can receive the most current upgrade kits.The Hot Line or Microsoft Numbers are: 1-800-755-2345 for U.S. and most of Canada, and 1-480-792-7302 for the rest of the world. Preliminary PIC16C432 092002 DS41140B-page 101 ...

Page 104

... Telephone: (_______) _________ - _________ Application (optional): Would you like a reply? Y Device: PIC16C432 Questions: 1. What are the best features of this document? 2. How does this document meet your hardware and software development needs you find the organization of this document easy to follow? If not, why? 4 ...

Page 105

... Register on our web site (www.microchip.com/cn) to receive the most current information on our products. 2002 Microchip Technology Inc. XXX Examples: Pattern a) b) +85 C +125 C Preliminary PIC16C432 PIC16C432 -E/P301 = Extra Temp, PDIP pack- age, 4 MHz, normal V limits, QTP pattern DD #301 PIC16C432 -I/SS Industrial Temp., SSOP pack- V age, 4 MHz, industrial limits DD DS41140B-page103 ...

Page 106

... Korea Microchip Technology Korea 168-1, Youngbo Bldg. 3 Floor Samsung-Dong, Kangnam-Ku Seoul, Korea 135-882 Tel: 82-2-554-7200 Fax: 82-2-558-5934 Singapore Microchip Technology Singapore Pte Ltd. 200 Middle Road #07-02 Prime Centre Singapore, 188980 Tel: 65-6334-8870 Fax: 65-6334-8850 Taiwan Microchip Technology (Barbados) Inc., Taiwan Branch 11F-3, No ...

Related keywords