PIC16C432/JW Microchip Technology, PIC16C432/JW Datasheet

IC MCU CMOS 8BIT 20MHZ 2K 20CDIP

PIC16C432/JW

Manufacturer Part Number
PIC16C432/JW
Description
IC MCU CMOS 8BIT 20MHZ 2K 20CDIP
Manufacturer
Microchip Technology
Series
PIC® 16Cr
Datasheets

Specifications of PIC16C432/JW

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
EPROM, UV
Ram Size
128 x 8
Voltage - Supply (vcc/vdd)
4.5 V ~ 5.5 V
Oscillator Type
External
Operating Temperature
0°C ~ 70°C
Package / Case
20-CDIP (0.300", 7.62mm) Window
For Use With
AC164029 - MODULE SKT PROMATEII 20DIP/SSOPDVA16XP201 - ADAPTER DEVICE FOR MPLAB-ICE
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant
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/JW

PIC16C432/JW 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

... Timer0: 8-bit timer/counter with 8-bit programmable prescaler • Integrated LIN Transceiver • Wake-up on bus activity • 12V battery operation for Transceiver • Thermal shutdown for Transceiver • Ground loss protection 2002 Microchip Technology Inc. PIC16C432 PIN DIAGRAM Ceramic DIP, SSOP, PDIP LIN RA2/AN2/V REF ...

Page 4

... When contacting a sales office or the literature center, please specify which device, revision of silicon and data sheet (include liter- ature number) you are using. Customer Notification System Register on our web site at www.microchip.com/cn to receive the most current information on all of our products. DS41140B-page 2 Preliminary 2002 Microchip Technology Inc. ...

Page 5

... The SLEEP (power-down) mode offers power savings. The user can wake-up the chip from SLEEP through several external and internal interrupts and RESET. 2002 Microchip Technology Inc. A highly reliable Watchdog Timer with its own on-chip RC oscillator provides protection against software lock- up ...

Page 6

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

Page 7

... The devices are identical to the OTP devices, but with all EPROM locations and config- uration options already programmed by the factory. Certain code and prototype verification procedures apply before production shipments are available. Please contact your Microchip Technology sales office erased and for more details. 2.4 ...

Page 8

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

Page 9

... Stack Level 2 Stack Level 8 RESET Vector Interrupt Vector On-chip Program Memory 2002 Microchip Technology Inc. 3.2 Data Memory Organization The data memory (Figure 3-2) is partitioned into two Banks, which contain the General Purpose Registers and the Special Function Registers. Bank 0 is selected when the RP0 bit is cleared. Bank 1 is selected when the RP0 bit (STATUS < ...

Page 10

... A0h BFh C0h F0h FFh Preliminary 2002 Microchip Technology Inc. ...

Page 11

... Other (non power-up) RESETS include MCLR Reset, Brown-out Reset and Watchdog Timer Reset during normal operation. 2: IRP & RPI bits are reserved; always maintain these bits clear. 3: TLINRX must set to ‘1’ at all times. 2002 Microchip Technology Inc. Bit 5 Bit 4 Bit 3 Bit 2 ...

Page 12

... Digit Borrow out bit, respectively, in subtraction. See the SUBLW and SUBWF instructions for examples. R/W-0 R-1 R-1 R/W-x RP0 Writable bit U = Unimplemented bit, read as ‘0’ ’1’ = Bit is set ’0’ = Bit is cleared Preliminary R/W-x R/W bit0 x = Bit is unknown 2002 Microchip Technology Inc. ...

Page 13

... Bit Value 000 001 010 011 100 101 110 111 Legend Readable bit - n = Value at POR reset 2002 Microchip Technology Inc. Note: To achieve a 1:1 prescaler assignment for TMR0, assign the prescaler to the WDT (PSA = 1). R/W-1 R/W-1 R/W-1 T0CS T0SE PSA TMR0 Rate ...

Page 14

... GIE (INTCON<7>). for a R/W-0 R/W-0 R/W-0 R/W-0 T0IE INTE RBIE T0IF W = Writable bit U = Unimplemented bit, read as ‘0’ ’1’ = Bit is set ’0’ = Bit is cleared Preliminary R/W-0 R/W-x INTF RBIF bit0 x = Bit is unknown 2002 Microchip Technology Inc. ...

Page 15

... Unimplemented: Read as '0' bit 6 CMIF: Comparator Interrupt Flag bit 1 = Comparator input has changed 0 = Comparator input has not changed bit 5-0 Unimplemented: Read as '0' Legend Readable bit - n = Value at POR reset 2002 Microchip Technology Inc. U-0 U-0 U-0 U-0 — — — — Writable bit U = Unimplemented bit, read as ‘ ...

Page 16

... Value at POR reset DS41140B-page 14 has bit in the U-0 U-0 U-0 — — — — Writable bit U = Unimplemented bit, read as ‘0’ ’1’ = Bit is set ’0’ = Bit is cleared Preliminary U-0 R/W-0 R/W-0 — POR BOD bit0 x = Bit is unknown 2002 Microchip Technology Inc. ...

Page 17

... PCL memory boundary (each 256 byte block). Refer to the Application Note, “Implementing a Table Read” (AN556). 2002 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 ...

Page 18

... Bank 1 Bank 2 Bank 3 Preliminary INDIRECT ADDRESSING 0x20 ;initialize pointer FSR ;to RAM INDF ;clear INDF register FSR ;inc pointer FSR,4 ;all done? NEXT ;no clear next ;yes continue Indirect Addressing ( FSR Register location select 1FFh 2002 Microchip Technology Inc. ...

Page 19

... Input Buffer RD TRISA PORTA To Comparator 2002 Microchip Technology Inc. Note: On RESET, the TRISA register is set to all inputs. The digital inputs are disabled and the comparator inputs are forced to ground, to reduce excess current con- sumption. TRISA controls the direction of the RA pins, even when they are being used as comparator inputs ...

Page 20

... BLOCK DIAGRAM OF RA3 PIN Data Bus D Q Comparator Output WR PORTA Q CK Data Latch TRISA CK Q TRIS Latch RD TRISA RD PORTA To Comparator DS41140B-page RA2 Pin Comparator Mode = 110 Q EN Preliminary RA3 Pin N Vss Analog Input Mode Schmitt Trigger Input Buffer D 2002 Microchip Technology Inc. ...

Page 21

... VREN VROE Legend: — = Unimplemented locations, read as ‘0’ unknown unchanged Note 1: Shaded bits are not used by PORTA. 2: TLINRX must be set to ‘1’ at all times. 2002 Microchip Technology Inc. Comparator Mode = 110 Q Function Input/output or comparator input. LIN receive pin. Input/output or comparator input or V Input/output or comparator input/output ...

Page 22

... WR PORTB I/O pin (1) WR TRISB ST Buffer RB0/INT Note 1: TRISB = 1 enables weak pull-up if RBPU = 0 (OPTION<7>). RD Port Preliminary BLOCK DIAGRAM OF RB<3:0> PINS Weak I/O pin Data Latch Pull- TRIS Latch D Q TTL Input CK Buffer RD TRISB PORTB ST RD Port Buffer 2002 Microchip Technology Inc. ...

Page 23

... OPTION RBPU INTEDG Legend unchanged unknown Note 1: Shaded bits are not used by PORTB. 2002 Microchip Technology Inc. Function Input/output or external interrupt input. Internal software programmable weak pull-up. Input/output pin. Internal software programmable weak pull-up. Input/output pin. Internal software programmable weak pull-up. ...

Page 24

... Note: Q4 This example shows write to PORTB followed by a read from PORTB. Note that: data setup time = (0. where T = instruction cycle and propagation delay of Q1 cycle PD to output valid. Therefore, at higher clock frequencies, a write followed by a read may be problematic. 2002 Microchip Technology Inc. ...

Page 25

... Note: No resistor is required between V and 12V supply and for slave configura- tion, no resistor is required between V and LIN. 2002 Microchip Technology Inc. 5.4 Thermal Shutdown In thermal shutdown, the LIN output is disabled instan- taneously. The output transistor is turned off, regard- less of the input level at pin LINTX bit and only a limited current can flow into the receiver connected to the LIN pin ...

Page 26

... 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 BAT BACT Note LIN To LIN Bus Note +5V +12V BAT Note 2 BACT LIN To LIN Bus Note Preliminary 2002 Microchip Technology Inc. ...

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

... RA3 RA2 LINRX TRISA4 TRISA3 TRISA2 TLINRX — — LINTX — Preliminary R/W-1 U-0 R/W-1 LINTX — LINVDD bit Bit is unknown Value on Value on Bit 0 All Other POR RESETS RA0 ---x 0000 ---u 0000 (2) TRISA0 ---1 1111 ---1 1111 LINV DD ---- -1-1 ---- -1-1 2002 Microchip Technology Inc. ...

Page 29

... T0 T0+1 TMR0 Instruction Executed 2002 Microchip Technology Inc. bit (OPTION<4>). Clearing the T0SE bit selects the rising edge. Restrictions on the external clock input are discussed in detail in Section 6.2. The prescaler is shared between the Timer0 module and the Watchdog Timer. The prescaler assignment is controlled in software by the control bit PSA (OPTION< ...

Page 30

... FFh 00h 1 Interrupt Latency Time Inst (PC+1) Dummy cycle Inst (PC) Preliminary PC+4 PC+5 PC+6 MOVF TMR0,W NT0+1 Read TMR0 Read TMR0 reads NT0 reads NT0 + 01h 02h 0004h 0005h Inst (0004h) Inst (0005h) Dummy cycle Inst (0004h) 2002 Microchip Technology Inc. ...

Page 31

... Timer0 input = ± External clock if no prescaler selected, prescaler output otherwise. 3: The arrows indicate the points in time where sampling occurs. 2002 Microchip Technology Inc. When a prescaler is used, the external clock input is divided by the asynchronous ripple-counter type prescaler, so that the prescaler output is symmetrical ...

Page 32

... WDT, a CLRWDT instruction will clear the prescaler along with the Watchdog Timer. The prescaler is not readable or writable SYNC Cycles PSA 8-bit Prescaler 8 8-to-1MUX PS<2:0> PSA WDT Timeout Preliminary Data Bus 8 TMR0 reg Set Flag bit T0IF on Overflow 2002 Microchip Technology Inc. ...

Page 33

... TRISA — — Legend: — = Unimplemented locations, read as ‘0’ unknown unchanged Note 1: Shaded bits are not used by TMR0 module. 2: TLINRX must be set to ‘1’ at all times. 2002 Microchip Technology Inc. EXAMPLE 6-2: CLRWDT BSF STATUS, RP0 sequence MOVLW b'xxxx0xxx' ...

Page 34

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

Page 35

... Table 12-1. Note: Comparator interrupts should be disabled during a Comparator mode change, other- wise a false interrupt may occur. 2002 Microchip Technology Inc. two analog R-0 U-0 U-0 R/W-0 — ...

Page 36

... Off C1 (Read as ‘0’ Off C2 (Read as ‘0’ CM<2:0> = 111 CIS C1OUT C1 CIS CIS C2OUT CIS From V Module REF CM<2:0> = 010 Off C1 (Read as ‘0’ Off C2 (Read as ‘0’ CM<2:0> = 110 CIS CIS=1 C1 C1OUT C2OUT CM<2:0> = 001 2002 Microchip Technology Inc. ...

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

... If the internal ref- erence is changed, the maximum delay of the internal voltage reference must be considered when using the comparator outputs, otherwise the maximum delay of the comparators should be used (Table 12.1). DS41140B-page 36 Output for the + pin of IN Preliminary 2002 Microchip Technology Inc. ...

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

... Device current is minimized when analog inputs are present at RESET time. The comparators will be powered down during the RESET interval. 2002 Microchip Technology Inc. 7.9 Analog Input Connection Considerations A simplified circuit for an analog input is shown in Figure 7-4 ...

Page 42

... TRISA4 TRISA3 TRISA2 TLINRX Preliminary R IC Value on Value on: Bit 0 All Other POR RESETS CM0 00-- 0000 00-- 0000 VR0 000- 0000 000- 0000 RBIF 0000 000x 0000 000u — — -0-- ---- -0-- ---- — — -0-- ---- -0-- ---- (1) TRISA0 ---1 1111 ---1 1111 2002 Microchip Technology Inc. ...

Page 43

... VOLTAGE REFERENCE BLOCK DIAGRAM V REN 8R V REF Note defined in Table 12-2 2002 Microchip Technology Inc. 8.1 Configuring the Voltage Reference The Voltage Reference can output 16 distinct voltage levels for each range. The equations used to calculate the output of the Voltage Reference are as follows ...

Page 44

... The V RR REF Reference Module operates bit, ROE enabled will also increase REF shows an example buffering • V Output REF Value On Value On Bit 0 All Other POR/BOD RESETS VR0 000- 0000 000- 0000 CM0 00-- 0000 00-- 0000 (1) TRISA0 ---1 1111 ---1 1111 2002 Microchip Technology Inc. ...

Page 45

... Code Protection 7. ID Locations 8. In-circuit Serial Programming 2002 Microchip Technology Inc. The PIC16C432 has a Watchdog Timer which is controlled by configuration bits. It runs off its own RC oscillator for added reliability. There are two timers that offer necessary delays on power-up. One is the Oscillator Start-up Timer (OST), intended to keep the chip in RESET until the crystal oscillator is stable ...

Page 46

... R = Readable bit -n = Value at POR DS41140B-page 44 (2) (1) CP1 CP0 — BODEN CP1 CP0 (2) (1) ( Writable bit U = Unimplemented bit, read as ‘0’ ’1’ = Bit is set ’0’ = Bit is cleared Preliminary (2) (1) PWRTE WDTE F0SC1 F0SC0 bit Bit is unknown 2002 Microchip Technology Inc. ...

Page 47

... FIGURE 9-2: EXTERNAL CLOCK INPUT OPERATION (HS OSC CONFIGURATION) Clock from OSC1 ext. system PIC16C432 OSC2 Open 2002 Microchip Technology Inc. TABLE 9-1: Mode XT 455 kHz 2.0 MHz 4.0 MHz HS 8.0 MHz 16.0 MHz These values are for design guidance only. See notes at bottom of page ...

Page 48

... Preliminary ) values, and the EXT variation. Furthermore, the values. The user also needs to EXT between 3 k and 100 k . EXT = 0 pF), we recommend using values /C values, as well as EXT EXT values OSCILLATOR MODE PIC16C432 OSC1 Internal Clock OSC2/CLKOUT F /4 OSC 2002 Microchip Technology Inc. ...

Page 49

... Ripple-counter RC OSC Note 1: This is a separate oscillator from the RC oscillator of the CLKIN pin. 2002 Microchip Technology Inc. WDT Reset and MCLR Reset during SLEEP. They are not affected by a WDT wake-up, since this is viewed as the resumption of normal operation. TO and PD bits are set or cleared differently in different RESET situations, as indicated in Table 9-4 ...

Page 50

... RESET. The Power-up Timer should always be enabled when Brown-out Reset is enabled. Figure 9-7 shows typical Brown-out situations < Preliminary , temperature and process variation. DD falls below 4.0V (refer to BV param BOR falls below 4.0V for less DD ). BOR rises DD while the Power-up Timer is DD rises 2002 Microchip Technology Inc. ...

Page 51

... Legend unknown unchanged 2002 Microchip Technology Inc. 9.4.6 POWER CONTROL (PCON)/STATUS REGISTER The power control/status register, PCON (address 8Eh), has two bits. Bit0 is BOR (Brown-out). BOR is unknown on Power- on Reset. It must then be set by the user and checked on subsequent RESETS to see if BOR = 0, indicating that a brown-out has occurred. The BOR status bit is a “ ...

Page 52

... Wake-up from SLEEP through Interrupt Wake-up from SLEEP through WDT Timeout uuuu uuuu - uuuu uuuu ( (4) uuuq quuu uuuu uuuu ---u uuuu uuuu uuuu uu-- uuuu ---u uuuu (2) uuuu uqqq (2,5) -q-- ---- uuuu uuuu ---u uuuu uuuu uuuu -u-- ---- ---- --uu ---- -1-1 uuu- uuuu 2002 Microchip Technology Inc. ...

Page 53

... TIMEOUT SEQUENCE ON POWER-UP (MCLR NOT TIED 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 1 DD ...

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

... RBIE CMIF CMIE PEIE GIE 2002 Microchip Technology Inc. When an interrupt is responded to, the GIE is cleared to disable any further interrupt, the return address is pushed into the stack and the PC is loaded with 0004h. Once in the Interrupt Service Routine, the source(s) of the interrupt can be determined by polling the interrupt flag bits ...

Page 56

... COMPARATOR INTERRUPT See Section 7.6 for complete description of comparator interrupts Interrupt Latency 2 PC+1 PC+1 Inst (PC+1) — Dummy Cycle Dummy Cycle Inst (PC) Preliminary 00h) in the TMR0 register will by setting/clearing T0IE 0004h 0005h Inst (0004h) Inst (0005h) Inst (0004h) 2002 Microchip Technology Inc. ...

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

... Timeout Bit 6 Bit 5 Bit 4 Bit 3 BOREN CP1 CP0 PWRTE INTEDG T0CS T0SE PSA Preliminary SLEEP instructions clear the WDT = Min., Temperature = Max., max. 8 PS<2:0> To TMR0 (Figure 6-6) 1 PSA Bit 2 Bit 1 Bit 0 WDTE FOSC1 FOSC0 PS2 PS1 PS0 2002 Microchip Technology Inc. ...

Page 59

... The MCLR pin must logic high level (V Note: It should be noted that a RESET generated by a WDT timeout does not drive MCLR pin low. 2002 Microchip Technology Inc. 9.8.1 WAKE-UP FROM SLEEP The device can wake-up from SLEEP through one of the following events: 1 ...

Page 60

... A typical in-circuit serial programming connection is shown in Figure 9-19. FIGURE 9-19: External Connector Signals + CLK Data I/O Preliminary 0004h 0005h Inst(0004h) Inst(0005h) Dummy cycle Inst(0004h) TYPICAL IN-CIRCUIT SERIAL PROGRAMMING CONNECTION To Normal Connections PIC16C432 MCLR/V PP RB6 RB7 Normal Connections 2002 Microchip Technology Inc. ...

Page 61

... Assigned to Register bit field < > In the set of italics User defined term (font is courier) 2002 Microchip Technology Inc. The instruction set is highly orthogonal and is grouped into three basic categories: • Byte-oriented operations • Bit-oriented operations • Literal and control operations All instructions are executed within one single operations ...

Page 62

... 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 OPCODE k (literal 8-bit immediate value CALL and GOTO instructions only OPCODE k (literal 11-bit immediate value DS41140B-page Preliminary 2002 Microchip Technology Inc. ...

Page 63

... If this instruction is executed on the TMR0 register (and, where applicable 1), the prescaler will be cleared if assigned to the Timer0 Module 3: If Program Counter (PC) is modified or a conditional test is true, the instruction requires two cycles. The second is exe- cuted as a NOP . 2002 Microchip Technology Inc. 14-Bit Opcode Cycles MSb ...

Page 64

... ANDWF f 127 d [0,1] (W) .AND. (f) (dest 0101 dfff ffff AND the W register with register 'f the result is stored in the W register the result is stored back in register 'f ANDWF FSR, 1 Before Instruction W = 0x17 FSR = 0xC2 After Instruction W = 0x17 FSR = 0x02 2002 Microchip Technology Inc. ...

Page 65

... Encoding: 01 01bb bfff Description: Bit ’b’ in register ’f’ is set. Words: 1 Cycles: 1 Example BSF FLAG_REG, Before Instruction FLAG_REG After Instruction FLAG_REG 2002 Microchip Technology Inc. BTFSC Syntax: Operands: Operation: Status Affected: Encoding: bfff ffff Description: = 0xC7 Words: = 0x47 Cycles: Example ...

Page 66

... PC = Address HERE After Instruction PC = Address THERE TOS = Address HERE+1 Clear f [ label ] CLRF 127 00h ( 0001 1fff ffff The contents of register ’f’ are cleared and the Z bit is set CLRF FLAG_REG Before Instruction FLAG_REG = 0x5A After Instruction FLAG_REG = 0x00 2002 Microchip Technology Inc. ...

Page 67

... Watchdog Timer. It also resets the prescaler of the WDT. Status bits TO and PD are set. Words: 1 Cycles: 1 Example CLRWDT Before Instruction WDT counter = ? After Instruction WDT counter = 0x00 WDT prescaler = 2002 Microchip Technology Inc. COMF Complement f Syntax: [ label ] COMF Operands Operation: (f) Status Affected: Z Encoding: 00 0011 Description: The contents of register ’ ...

Page 68

... Preliminary Increment f [ label ] INCF f 127 d [0,1] ( (dest 1010 dfff ffff The contents of register 'f' are incremented the result is placed in the W register the result is placed back in regis- ter 'f INCF CNT, 1 Before Instruction CNT = 0xFF After Instruction CNT = 0x00 2002 Microchip Technology Inc. ...

Page 69

... HERE INCFSZ 1 GOTO CONTINUE • • • Before Instruction PC = address HERE After Instruction CNT = CNT + 1 if CNT = address CONTINUE if CNT address HERE +1 2002 Microchip Technology Inc. IORLW Syntax: Operands: Operation: Status Affected: Encoding: ffff Description: Words: Cycles: Example CNT, LOOP IORWF ...

Page 70

... MOVWF 127 (W) (f) None 00 0000 1fff ffff Move data from W register to regis- ter 'f MOVWF OPTION Before Instruction OPTION = 0xFF W = 0x4F After Instruction OPTION = 0x4F W = 0x4F No Operation [ label ] NOP None No operation None 00 0000 0xx0 0000 No operation NOP 2002 Microchip Technology Inc. ...

Page 71

... PC. Interrupts are enabled by setting Global Inter- rupt Enable bit, GIE (INTCON<7>). This is a two-cycle instruction. Words: 1 Cycles: 2 Example RETFIE After Interrupt PC = TOS GIE = 1 2002 Microchip Technology Inc. RETLW Syntax: Operands: Operation: 0010 Status Affected: Encoding: Description: Words: Cycles: Example ® prod- ...

Page 72

... PD TO 0000 0110 0011 The power-down status bit cleared. Timeout status bit set. Watchdog Timer and its prescaler are cleared. The processor is put into SLEEP mode with the oscillator stopped. See Section 9.8 for more details SLEEP 2002 Microchip Technology Inc. ...

Page 73

... result is zero Example 3: Before Instruction After Instruction W = 0xFF result is negative 2002 Microchip Technology Inc. SUBWF Subtract W from f Syntax: [ label ] Operands [0,1] Operation: (f) - (W) Status C, DC, Z Affected: kkkk Encoding: 00 Description: Subtract (2’s complement method) W register from register 'f the result is stored in the W register the result is stored back in reg- ister 'f' ...

Page 74

... Z 00 0110 dfff ffff Exclusive OR the contents of the W register with register 'f the result is stored in the W regis- ter the result is stored back in register 'f XORW REG 1 F Before Instruction REG = 0xAF W = 0xB5 After Instruction REG = 0x1A W = 0xB5 2002 Microchip Technology Inc. ...

Page 75

... A project manager • Customizable toolbar and key mapping • A status bar • On-line help 2002 Microchip Technology Inc. The MPLAB IDE allows you to: • Edit your source files (either assembly or ‘C’) • One touch assemble (or compile) and download to PICmicro emulator and simulator tools (auto- matically updates all project information) • ...

Page 76

... ICEPIC In-Circuit Emulator The ICEPIC low cost, in-circuit emulator is a solution for the Microchip Technology PIC16C5X, PIC16C6X, PIC16C7X and PIC16CXXX families of 8-bit One- Time-Programmable (OTP) microcontrollers. The mod- ular system can support different subsets of PIC16C5X or PIC16CXXX products through the use of inter- changeable personality modules, or daughter boards ...

Page 77

... PIC16C92X PIC17C76X, may be supported with an adapter socket. The PICSTART Plus development programmer is CE compliant. 2002 Microchip Technology Inc. 11.11 PICDEM 1 Low Cost PICmicro Demonstration Board The PICDEM 1 demonstration board is a simple board which demonstrates the capabilities of several of Microchip’s microcontrollers. The microcontrollers sup- ...

Page 78

... Programming Tools K L evaluation and programming tools support EE OQ Microchip’s HCS Secure Data Products. The HCS eval- uation kit includes a LCD display to show changing codes, a decoder to decode transmissions and a pro- gramming interface to program test transmitters. Preliminary 2002 Microchip Technology Inc. ...

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

... This is a stress rating only and functional operation of the device at those or any other conditions, above those indicated in the operation listings of this specification, is not implied. Exposure to maximum rating conditions for extended periods may affect device reliability. 2002 Microchip Technology Inc. (except V and MCLR) ....................................................-0. (Note 2) ...

Page 82

... 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. DS41140B-page FREQUENCY (MHz) Preliminary T +125 2002 Microchip Technology Inc. ...

Page 83

... The current is the additional current consumed when this peripheral is enabled. This current should be added to the base measurement Commercial temperature range only. 2002 Microchip Technology Inc. Standard Operating Conditions (unless otherwise stated) Operating temperature Min Typ† Max Units 4.5 — 5 ...

Page 84

... =1.6 mA, V =4.5V, - =1.2 mA, V =4.5V, +125 TBD I = 200 12V BUS I =-3.0 mA, V =4.5V, - =-2.5 mA, V =4.5V, +125 =-1.3 mA, V =4.5V, - =-1.0 mA, V =4.5V, +125 18V 5.0V 1.8 mA BAT DD OH RA4 pin 2002 Microchip Technology Inc. ...

Page 85

... Input hysteresis HYS LIN D321 Short circuit current limit SC LIN * These parameters are characterized but not tested. 2002 Microchip Technology Inc. Standard Operating Conditions (unless otherwise stated) Operating temperature -40°C TA +85°C for industrial and -40°C TA +125°C for extended Operating voltage V range as described in DC spec Table 12 ...

Page 86

... RR R < +125 C A Sym Min Typ I _ — — DD LIN I — — BAT Preliminary Max Units Comments ± 1 400 Units Comments /32 LSB LSB Low Range (V =1) RR LSB High Range (V =0) RR Figure 8.1 ms Max Units Comments 2002 Microchip Technology Inc. ...

Page 87

... Fall H High I Invalid (Hi-impedance) L Low 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 ...

Page 88

... RC Osc mode ns XT Osc mode ns HS Osc mode ms LP Osc mode OSC ns XT oscillator, T L/H duty cycle OSC ms LP oscillator, T L/H duty cycle OSC ns HS oscillator, T L/H duty cycle OSC ns XT oscillator ns LP oscillator ns HS oscillator . 2002 Microchip Technology Inc. ...

Page 89

... These parameters are characterized but not tested. † Data in “Typ” column is at 5.0V unless otherwise stated. These parameters are for design guidance only and are not tested. Note 1: Measurements are taken in RC mode where CLKOUT output 2002 Microchip Technology Inc ...

Page 90

... Data in “Typ” column is at 5.0V unless otherwise stated. These parameters are for design guidance only and are not tested. DS41140B-page Min Typ† Max Units 2000 — — 33* ms — 1024 T — — OSC 28* 72 132* ms — 2.0 ms 100* — — ms Preliminary 34 Conditions - 5.0V, - OSC1 period OSC V = 5.0V, - 3.7V V 4.3V DD 2002 Microchip Technology Inc. ...

Page 91

... Symmetry of receiver propaga- rec_sym tion delay rising edge w.r.t. fall- ing edge T Symmetry of transmitter propa- trans_sym gation delay rising edge w.r.t. falling edge Note 1: Rising edge is system dependent. Value is characterized but not tested. 2002 Microchip Technology Inc Min Typ† No Prescaler 0 20* — ...

Page 92

... 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. +135 +155 1.5 t trans_pdr Preliminary Unit Note °C Information Parameter °C Information Parameter ms Information Parameter t rec_pdr 2002 Microchip Technology Inc. ...

Page 93

... FIGURE 13-1: 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 ...

Page 94

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

Page 95

... Standard marking consists of Microchip part number, year code, week code, and traceability code. For marking beyond this, certain price adders apply. 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 ...

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

... Mold Draft Angle Top Mold Draft Angle Bottom * Controlling Parameter § Significant Characteristic Notes: Dimensions D and E1 do not include mold flash or protrusions. Mold flash or protrusions shall not exceed .010” (0.254mm) per side. JEDEC Equivalent: MO-150 Drawing No. C04-072 2002 Microchip Technology Inc Units ...

Page 98

... Preliminary MILLIMETERS MIN NOM MAX 20 2.54 3.56 3.94 4.32 2.92 3.30 3.68 0.38 7.49 7.87 8.26 6.10 6.35 6.60 26.04 26.24 26.42 3.05 3.30 3.56 0.20 0.29 0.38 1.40 1.52 1.65 0.36 0.46 0.56 7.87 9.40 10. 2002 Microchip Technology Inc. ...

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

... I/O Programming Considerations........................................ 22 ICEPIC In-Circuit Emulator ................................................. 74 ID Locations ........................................................................ 58 INCF Instruction .................................................................. 66 INCFSZ Instruction ............................................................. 67 In-Circuit Serial Programming ............................................. 58 Indirect Addressing, INDF and FSR Registers ................... 16 Instruction Set ADDLW ....................................................................... 62 ADDWF....................................................................... 62 ANDLW ....................................................................... 62 ANDWF....................................................................... 62 2002 Microchip Technology Inc. BCF ............................................................................ 63 BSF............................................................................. 63 BTFSC........................................................................ 63 BTFSS ........................................................................ 64 CALL........................................................................... 64 CLRF .......................................................................... 64 CLRW ......................................................................... 65 CLRWDT .................................................................... 65 COMF ......................................................................... 65 DECF.......................................................................... 65 DECFSZ ..................................................................... 66 GOTO ...

Page 102

... TMR0 with External Clock........................................... 29 Timer1 DS41140B-page 100 Switching Prescaler Assignment ................................ 31 Timing Diagrams and Specifications .................................. 86 TMR0 Interrupt.................................................................... 54 TRIS Instruction .................................................................. 72 TRISA ................................................................................. 17 TRISB ................................................................................. 20 V Voltage Reference Module ................................................. 41 VRCON Register ................................................................ 41 W Watchdog Timer (WDT)...................................................... 56 WWW, On-Line Support ....................................................... 2 X XORLW Instruction ............................................................. 72 XORWF Instruction............................................................. 72 Preliminary 2002 Microchip Technology Inc. ...

Page 103

... Microchip Products • Conferences for products, Development Systems, technical information and more • Listing of seminars and events 2002 Microchip Technology Inc. SYSTEMS INFORMATION AND UPGRADE HOT LINE The Systems Information and Upgrade Line provides system users a listing of the latest versions of all of Microchip’ ...

Page 104

... What deletions from the document could be made without affecting the overall usefulness there any incorrect or misleading information (what and where)? 7. How would you improve this document? DS41140B-page 102 Total Pages Sent ________ FAX: (______) _________ - _________ N Literature Number: DS41140B Preliminary 2002 Microchip Technology Inc. ...

Page 105

... The Microchip Worldwide Site (www.microchip.com) Please specify which device, revision of silicon and Data Sheet (include Literature #) you are using. New Customer Notification System 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 ...

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