PIC16C433-I/P Microchip Technology, PIC16C433-I/P Datasheet

IC MCU CMOS 8BIT 10MHZ 2K 18-DIP

PIC16C433-I/P

Manufacturer Part Number
PIC16C433-I/P
Description
IC MCU CMOS 8BIT 10MHZ 2K 18-DIP
Manufacturer
Microchip Technology
Series
PIC® 16Cr
Datasheets

Specifications of PIC16C433-I/P

Core Processor
PIC
Core Size
8-Bit
Speed
10MHz
Connectivity
LIN (Local Interconnect Network)
Peripherals
POR, WDT
Number Of I /o
5
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
Data Converters
A/D 4x8b
Oscillator Type
Internal
Operating Temperature
-40°C ~ 85°C
Package / Case
18-DIP (0.300", 7.62mm)
For Use With
DVA16XP185 - ADAPTER DEVICE ICE 18DIP/SOICAC164030 - MODULE SKT PROMATEII 28DIP/SOICDVA16XP140 - ADAPTER DEVICE FOR MPLAB-ICE
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant
Eeprom Size
-
PIC16C433
Data Sheet
8-Bit CMOS Microcontroller
with LIN Transceiver
Preliminary
 2002 Microchip Technology Inc.
DS41139B

Related parts for PIC16C433-I/P

PIC16C433-I/P Summary of contents

Page 1

... Microchip Technology Inc. PIC16C433 Data Sheet 8-Bit CMOS Microcontroller with LIN Transceiver Preliminary DS41139B ...

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

... CMOS Microcontroller with LIN Transceiver Devices Included in this Data Sheet: • PIC16C433 High Performance RISC CPU: • Only 35 single word instructions to learn • All instructions are single cycle (400 ns) except for program branches which are two-cycle • Operating speed MHz clock input ...

Page 4

... Analog-to-Digital Converter (A/D) Module .......................................................................................................... 43 9.0 Special Features of the CPU .............................................................................................................................. 51 10.0 Instruction Set Summary .................................................................................................................................... 67 11.0 Development Support......................................................................................................................................... 81 12.0 Electrical Specifications for PIC16C433 ............................................................................................................. 87 13.0 DC and AC Characteristics............................................................................................................................... 105 14.0 Packaging Information...................................................................................................................................... 111 Appendix A:Compatibility ............................................................................................................................................ 115 INDEX ......................................................................................................................................................................... 117 On-Line Support .......................................................................................................................................................... 121 Systems Information and Upgrade Hot Line ............................................................................................................... 121 Reader Response ...

Page 5

... PIC16C433 microcontroller typically achieve a 2:1 code compression and a 4:1 speed improvement over other 8-bit microcontrollers in their class. The PIC16C433 device has 128 bytes of RAM, 5 I/O pins and 1 input pin. In addition, a timer/counter is available. Also a 4-channel, high speed, 8-bit A/D is provided. The 8-bit resolution is ideally suited for appli- cations requiring low cost analog interface (i ...

Page 6

... PIC16C433 NOTES: DS41139B-page 4 Preliminary  2002 Microchip Technology Inc. ...

Page 7

... 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 PIC16C433 Product Identi- fication System (page 123) at the end of this data sheet. When placing orders, please use that page of the data sheet to specify the correct part number ...

Page 8

... PIC16C433 NOTES: DS41139B-page 6 Preliminary  2002 Microchip Technology Inc. ...

Page 9

... ARCHITECTURAL OVERVIEW The high performance of the PIC16C433 family can be attributed to a number of architectural features com- monly found in RISC microprocessors. To begin with, the PIC16C433 uses a Harvard architecture in which program and data are accessed from separate memo- ries using separate buses. This improves bandwidth ...

Page 10

... PIC16C433 FIGURE 3-1: PIC16C433 BLOCK DIAGRAM Device PIC16C433 13 EPROM Program Memory Program 14 Bus Instruction reg Direct Addr 8 Instruction Decode & Start-up Timer Control Timing OSC1/CLKIN Generation OSC2/CLKOUT Internal 4 MHz Clock MCLR Note 1: Higher order bits are from the STATUS Register. DS41139B-page 8 ...

Page 11

... TABLE 3-1: PIC16C433 PINOUT DESCRIPTION Name DIP Pin # GP0/AN0 13 GP1/AN1/V 12 REF GP2/T0CKI/AN2/INT 11 GP3/MCLR GP4/OSC2/AN3/CLKOUT 7 GP5/OSC1/CLKIN 6 LIN BAT BACT 3,14, Legend Input Output, I/O = Input/Output Power, — = not used, TTL = TTL input Schmitt Trigger input Open Drain  2002 Microchip Technology Inc. ...

Page 12

... PIC16C433 3.1 Clocking Scheme/Instruction Cycle The clock input (from OSC1) is internally divided by four to generate four non-overlapping quadrature clocks, namely Q1, Q2, Q3 and Q4. Internally, the pro- gram counter (PC) is incremented every Q1, and the instruction is fetched from the program memory and latched into the instruction register in Q4. The instruc- tion is decoded and executed during the following Q1 through Q4 ...

Page 13

... RAM. Both Bank 0 and Bank 1 contain Special Function Registers. Some "high use" Special Function Registers from Bank 0 are mirrored in Bank 1 for code reduction and quicker access. Also note that F0h through FFh on the PIC16C433 is mapped into Bank 0 registers 70h-7Fh as common RAM. 4.2.1 ...

Page 14

... PIC16C433 FIGURE 4-2: PIC16C433 REGISTER FILE MAP File Address (1) 00h INDF INDF 01h TMR0 OPTION 02h PCL PCL 03h STATUS STATUS 04h FSR FSR 05h GPIO TRIS 06h 07h 08h 09h 0Ah PCLATH PCLATH 0Bh INTCON INTCON 0Ch PIR1 PIE1 0Dh ...

Page 15

... Other (non Power-up) Resets include external RESET through MCLR and Watchdog Timer Reset. 4: The IRP and RP1 bits are reserved on the PIC16C433; always maintain these bits clear.  2002 Microchip Technology Inc. Bit 5 Bit 4 Bit 3 ...

Page 16

... The upper byte of the program counter is not directly accessible. PCLATH is a holding register for the PC<12:8> whose contents are transferred to the upper byte of the program counter. 3: Other (non Power-up) Resets include external RESET through MCLR and Watchdog Timer Reset. 4: The IRP and RP1 bits are reserved on the PIC16C433; always maintain these bits clear. DS41139B-page 14 Bit 5 Bit 4 Bit 3 ...

Page 17

... For other instructions, not affecting any status bits, see the "Instruction Set Summary." Note 1: Bits IRP and RP1 (STATUS<7:6>) are not used by the PIC16C433 and should be maintained clear. Use of these bits as general purpose R/W bits is NOT recom- mended, since this may affect upward compatibility with future products ...

Page 18

... PIC16C433 4.2.2.2 OPTION Register The OPTION Register is a readable and writable regis- ter, which contains various control bits to configure the TMR0/WDT prescaler, the External INT Interrupt, TMR0 and the weak pull-ups on GPIO. REGISTER 4-2: OPTION REGISTER (ADDRESS 81h)) R/W-1 R/W-1 GPPU ...

Page 19

... GIE (INTCON<7>). R/W-0 R/W-0 R/W-0 R/W-0 T0IE INTE GPIE T0IF W = Writable bit U = Unimplemented bit, read as ‘0’ ’1’ = Bit is set ’0’ = Bit is cleared Preliminary PIC16C433 R/W-0 R/W-x INTF GPIF bit0 x = Bit is unknown DS41139B-page 17 ...

Page 20

... PIC16C433 4.2.2.4 PIE1 Register This register contains the individual enable bits for the Peripheral interrupts. REGISTER 4-4: PIE1 REGISTER (ADDRESS 8Ch)) U-0 R/W-0 — ADIE bit7 bit 7 Unimplemented: Read as '0' bit 6 ADIE: A/D Converter Interrupt Enable bit 1 = Enables the A/D interrupt ...

Page 21

... 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 PIC16C433 U-0 U-0 — — bit0 x = Bit is unknown DS41139B-page 19 ...

Page 22

... PIC16C433 4.2.2.6 PCON Register The Power Control (PCON) Register contains a flag bit to allow differentiation between a Power-on Reset (POR), an external MCLR Reset and a WDT Reset. REGISTER 4-6: PCON REGISTER (ADDRESS 8Eh)) U-0 — bit7 bit 7-2 Unimplemented: Read as '0' bit 1 POR: Power-on Reset Status bit ...

Page 23

... Value at POR  2002 Microchip Technology Inc. R/W-1 R/W-1 R/W-0 R/W-0 CAL1 CAL0 CALFST CALSLW W = Writable bit U = Unimplemented bit, read as ‘0’ ’1’ = Bit is set ’0’ = Bit is cleared Preliminary PIC16C433 U-0 U-0 — — bit0 x = Bit is unknown DS41139B-page 21 ...

Page 24

... GOTO, CALL PCLATH<4:3>, which are used to access program memory when more than one page is available. The Opcode <10:0> use of PCLATH<4:3> as general purpose read/write bits for the PIC16C433 is not recommended, since this may affect upward compatibility with future products. Preliminary ignores both ...

Page 25

... 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 4-4. However, IRP is not used in the PIC16C433. FIGURE 4-4: DIRECT/INDIRECT ADDRESSING Direct Addressing (1) ...

Page 26

... PIC16C433 NOTES: DS41139B-page 24 Preliminary  2002 Microchip Technology Inc. ...

Page 27

... These port pins are not available externally on the package. Users should avoid writing to pins GP6 (SDA) and GP7 (SCL), when not communicating with the LIN bus transceiver. Note Power-on Reset, GP0, GP1, GP2 and GP4 are configured as analog inputs and read as '0'. Preliminary PIC16C433 DS41139B-page 25 ...

Page 28

... PIC16C433 FIGURE 5-1: BLOCK DIAGRAM OF GP0/AN0 AND GP1/AN1/V Data Bus PORT CK Q Data Latch TRIS CK Q TRIS Latch RD PORT (1) GP0/INT and GP1/INT To A/D Converter Note 1: Wake-up on pin change interrupts for GP0 and GP1. DS41139B-page 26 REF GPPU Analog Input Mode RD TRIS (1) Preliminary ...

Page 29

... BLOCK DIAGRAM OF GP2/T0CKI/AN2/INT PIN Data Bus PORT CK Q Data Latch TRIS CK Q TRIS Latch RD PORT TMR0 Clock Input GP2/INT To A/D Converter  2002 Microchip Technology Inc Analog Input Mode RD TRIS Preliminary PIC16C433 V DD I/O Pin V SS Schmitt Trigger Input Buffer DS41139B-page 27 ...

Page 30

... PIC16C433 FIGURE 5-3: BLOCK DIAGRAM OF GP3/MCLR/V Program Mode HV Detect Data Bus RD PORT RD TRIS (1) GP3/INT Note 1: Wake-up on pin change interrupt for GP3. DS41139B-page 28 PIN GPPU P MCLREN MCLR Schmitt Trigger Input Buffer Preliminary Input Pin SS V TTL Input Buffer  2002 Microchip Technology Inc. ...

Page 31

... Q WR TRIS CK Q TRIS Latch RD PORT To A/D Converter  2002 Microchip Technology Inc. INTRC or EXTRC w/ CLKOUT 1 0 From OSC1 Oscillator Circuit INTRC/ EXTRC INTRC or EXTRC w/o CLKOUT Analog Input Mode RD TRIS Preliminary PIC16C433 DD V I/O Pin SS V TTL Input Buffer DS41139B-page 29 ...

Page 32

... Legend: Shaded cells not used by Port Registers, read as ‘0’, — = unimplemented, read as '0 unknown unchanged see tables in Section 9.4 for possible values. Note 1: The IRP and RP1 bits are reserved on the PIC16C433; always maintain these bits clear. DS41139B-page 30 To OSC2 ...

Page 33

... A pin actively outputting a Low or High should not be driven from external devices at the same time, in order to change the level on this pin (“wired-or”, “wired-and”). The resulting high output currents may damage the chip. Preliminary PIC16C433 GPIO pins ---------- pp11 pppp pp11 pppp pp10 pppp ...

Page 34

... PIC16C433 NOTES: DS41139B-page 32 Preliminary  2002 Microchip Technology Inc. ...

Page 35

... LIN Bus TRANSCEIVER The PIC16C433 has an integrated LIN bus transceiver, which allows the microcontroller to communicate via a LIN bus. The LIN bus protocol is handled by the micro- controller. The conversion from 5V signal to LIN bus signals is handled by the transceiver 6.1 The LIN Bus Protocol The LIN bus protocol is not described within this docu- ment ...

Page 36

... EN ck ltchpin 6.5 Wake-up from SLEEP upon Bus Activity The PIC16C433 can Wake-up from SLEEP upon bus activity in the following way: 1. Connect BACT to one of GPIO<0:3> pins. The BACT output is a CMOS-levels representation of the LIN pin. This signal can be routed to one of the GPIO< ...

Page 37

... TYPICAL LIN BUS SLAVE APPLICATION Note 1: May not be required, based on bus capacitance.  2002 Microchip Technology Inc. +5V +12V BAT BACT (2) 1kΩ To LIN Bus LIN Note +5V +12V BAT BACT (2) LIN To LIN Bus Note BACT pin should be left open if not used. Preliminary PIC16C433 DS41139B-page 35 ...

Page 38

... PIC16C433 FIGURE 6-5: LIN BUS APPLICATION USING WAKE-UP INTERRUPT Note 1: For master configuration only. 2: May not be required. TABLE 6-1: SUMMARY OF LIN BUS TRANSCEIVER REGISTERS Address Name Bit 7 Bit 6 05h GPIO LINTX LINRX Legend unknown unchanged. Shaded cells not used by LIN Transceiver. ...

Page 39

... PC+2 PC+3 T0+2 NT0 NT0 NT0 Write TMR0 Read TMR0 Read TMR0 Read TMR0 reads NT0 reads NT0 reads NT0 executed Preliminary PIC16C433 Data Bus 8 TMR0 Set Interrupt Flag bit T0IF on Overflow PC+4 PC+5 PC+6 NT0+1 NT0+2 T0 Read TMR0 Read TMR0 ...

Page 40

... PIC16C433 FIGURE 7-3: TIMER0 TIMING: INTERNAL CLOCK/PRESCALE 1 (Program Counter) PC-1 PC MOVWF TMR0 MOVF TMR0,W MOVF TMR0,W MOVF TMR0,W MOVF TMR0,W MOVF TMR0,W Instruction Fetch T0 T0+1 TMR0 Instruction Execute FIGURE 7-4: TIMER0 INTERRUPT TIMING OSC1 (3) CLKOUT Timer0 FEh 1 T0IF bit (INTCON<2>) GIE bit (INTCON< ...

Page 41

... Timer0 mod- ule is actually incremented. Figure 7-5 shows the delay from the external clock edge to the timer incrementing ( OSC to 7T OSC (Duration OSC max. Preliminary PIC16C433 Small pulse misses sampling OSC ). Therefore, the error in measuring DS41139B-page 39 ...

Page 42

... PIC16C433 7.3 Prescaler An 8-bit counter is available as a prescaler for the Timer0 module postscaler for the Watchdog Timer, respectively (Figure 7-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 exclusively shared between the Timer0 module and the Watchdog Timer ...

Page 43

... INTE GPIE T0IF INTF T0CS T0SE PSA PS2 PS1 TRIS5 TRIS4 TRIS3 TRIS2 TRIS1 Preliminary PIC16C433 CHANGING PRESCALER (WDT → TIMER0) ;Clear WDT and ;prescaler ;Bank 1 ;Select TMR0, new ;prescale value and ;clock source ;Bank 0 Value on Value on Bit 0 all other POR ...

Page 44

... PIC16C433 NOTES: DS41139B-page 42 Preliminary  2002 Microchip Technology Inc. ...

Page 45

... INTCON Register. should be disabled prior to modifying ADCON1. R/W-0 R/W-0 R/W-0 reserved CHS1 CHS0 GO/DONE W = Writable bit U = Unimplemented bit, read as ‘0’ ’1’ = Bit is set ’0’ = Bit is cleared Preliminary PIC16C433 These interrupts R/W-0 R/W-0 R/W-0 reserved ADON bit0 x = Bit is unknown DS41139B-page 43 ...

Page 46

... PIC16C433 REGISTER 8-2: ADCON1 REGISTER (ADDRESS 9Fh U-0 — bit7 bit 7-2 Unimplemented: Read as ‘0’ bit 1-0 PCFG<2:0>: A/D Port Configuration Control bits PCFG<2:0> (1) 000 001 010 011 100 101 110 111 A = Analog Input D = Digital I/O Note 1: Value on RESET. 2: Any instruction that reads a pin configured as an analog input will read a '0'. ...

Page 47

... Read A/D Result Register (ADRES), clear bit ADIF if required. 7. For the next conversion step 1, step 2, or step 3, as required. The A/D conversion time per bit is defined as T required before next acquisition starts. CHS<1:0> (Input Voltage PCFG<2:0> Preliminary PIC16C433 . A minimum wait GP4/AN3 10 GP2/AN2 01 GP1/AN1/V REF 00 GP0/AN0 DS41139B-page 45 ...

Page 48

... PIC16C433 8.1 A/D Sampling Requirements For the A/D converter to meet its specified accuracy, the charge holding capacitor (C ) must be allowed HOLD to fully charge to the input channel voltage level. The analog input model is shown in Figure 8-2. The source impedance (R ) and the internal sampling switch (R ...

Page 49

... Device Frequency 4 MHz (2) 500 ns 00 2.0 µs 01 8.0 µs 10 (1, µs 11 time of 4 µs. AD time. AD Preliminary PIC16C433 will be converted 1.25 MHz 333.33 kHz 1.6 µs 6 µs (3) 6.4 µs 24 µs (3) (3) 25.6 µs 96 µs (1,4) ( µ µ ...

Page 50

... PIC16C433 8.4 A/D Conversions Example 8-2 shows how to perform an A/D conversion. The GPIO pins are configured as analog inputs. The analog reference ( the device V REF interrupt is enabled and the A/D conversion clock The conversion is performed on the GP0 channel. RC Note: The GO/DONE bit should NOT be set in the same instruction that turns on the A/D ...

Page 51

... If the input voltage exceeds the rail values (V by greater than 0.2V, then the accuracy of the conver- sion is out of specification. Note: For the PIC16C433, care must be taken when using the GP4 pin in A/D conver- sions due to its proximity to the OSC1 pin. An external RC filter is sometimes added for anti- aliasing of the input signal ...

Page 52

... PIC16C433 FIGURE 8-4: FLOW CHART OF A/D OPERATION ADON = 0 Yes ADON = 0? No Acquire Selected Channel Yes Yes Start of A/D A/D Clock Conversion Delayed = RC? 1 Instruction Cycle No Yes Abort Conversion Device SLEEP? ADIF = 0 No SLEEP Finish Conversion Power-down A ADIF = 1 AD Wait 2 T TABLE 8-2: ...

Page 53

... CPU What sets a microcontroller apart from other proces- sors are special circuits to deal with the needs of real- time applications. The PIC16C433 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. These are: • ...

Page 54

... PIC16C433 oscillator design requires the use of a par- allel cut crystal. Use of a series cut crystal may give a frequency out of the crystal manufacturers specifica- tions. When in XT modes, the device can have an external clock source drive the GP5/OSC1/ CLKIN pin (Figure 9-2) ...

Page 55

... R and C compo- nents used. Figure 9-5 shows how the R/C combination is con- nected to the PIC16C433. For R 2.2 kΩ, the oscillator operation may become unstable or stop completely. For very high R (i.e., 1 MΩ), the oscillator becomes sensitive to noise, humidity and leakage ...

Page 56

... RESET. See Table 9-6 for a full description of RESET states of all registers. A simplified block diagram of the On-Chip Reset circuit is shown in Figure 9-6. The PIC16C433 has a MCLR noise filter in the MCLR Reset path. The filter will detect and ignore small pulses. It should be noted that a WDT Reset does not drive MCLR pin low ...

Page 57

... CLKIN pin PWRT (1) On-chip 10-bit Ripple-counter RC OSC Note 1: This is a separate oscillator from the RC oscillator of the CLKIN pin.  2002 Microchip Technology Inc. MCLRE Internal MCLR Enable PWRT See Table 9-4 for timeout situations. Enable OST Preliminary PIC16C433 S Chip_Reset Q R DS41139B-page 55 ...

Page 58

... Since the timeouts occur from the POR pulse, if MCLR is kept low long enough, the timeouts will expire. Then bringing MCLR high will begin execution immediately (Figure 9-9). This is useful for testing purposes synchronize more than one PIC16C433 device operat- ing in parallel. 9.4.5 POWER CONTROL/STATUS REGISTER ...

Page 59

... Preliminary PIC16C433 PCON Register ---- --0- ---- --u- ---- --u- ---- --u- ---- --u- ---- --u- Wake-up via WDT or Interrupt uuuu uuuu 0000 0000 uuuu uuuu (2) ...

Page 60

... PIC16C433 FIGURE 9-7: TIMEOUT SEQUENCE ON POWER-UP (MCLR NOT TIED MCLR INTERNAL POR PWRT TIMEOUT OST TIMEOUT INTERNAL RESET FIGURE 9-8: TIMEOUT SEQUENCE ON POWER-UP (MCLR NOT TIED MCLR INTERNAL POR PWRT TIMEOUT OST TIMEOUT INTERNAL RESET FIGURE 9-9: TIMEOUT SEQUENCE ON POWER-UP (MCLR TIED TO V ...

Page 61

... This brown-out circuit is less expensive, albeit less accurate. Transistor Q1 turns off when V 2: Resistors should be adjusted for the charac- teristics of the transistor. Preliminary PIC16C433 PROTECTION CIRCUIT 10k MCLR 4.3k PIC16C433 DD goes PROTECTION CIRCUIT MCLR 4.3k PIC16C433 DD is below a certain level, such that 0. • DS41139B-page 59 ...

Page 62

... PIC16C433 9.5 Interrupts There are four sources of interrupt: Interrupt Sources TMR0 Overflow Interrupt External Interrupt GP2/INT pin GPIO Port Change Interrupts (pins GP0, GP1, GP3) A/D Interrupt The Interrupt Control Register (INTCON) records indi- vidual interrupt requests in flag bits. It also has individ- ual and global interrupt enable bits ...

Page 63

... INTF is enabled to be set any time during the Q4-Q1 cycles.  2002 Microchip Technology Inc Interrupt Latency 2 PC+1 PC+1 Inst (PC+1) — Dummy Cycle Dummy Cycle Inst (PC instruction cycle time. Preliminary PIC16C433 0004h 0005h Inst (0004h) Inst (0005h) Inst (0004h) DS41139B-page 61 ...

Page 64

... PIC16C433 9.5.1 TMR0 INTERRUPT An overflow (FFh → 00h) in the TMR0 register will set flag bit T0IF (INTCON<2>). The interrupt can be enabled/disabled by setting/clearing enable bit T0IE (INTCON<5>) (see Section 7.0). The flag bit T0IF (INTCON<2>) will be set, regardless of the state of the enable bits. If used, this flag must be cleared in software. ...

Page 65

... When the prescaler is assigned to the WDT, always execute a CLRWDT instruc- tion before changing the prescale value, otherwise a WDT Reset may occur. See Example 7-1 and Example 7-2 for changing pres- caler between WDT and Timer0.  2002 Microchip Technology Inc. Preliminary PIC16C433 DS41139B-page 63 ...

Page 66

... PIC16C433 FIGURE 9-16: WATCHDOG TIMER BLOCK DIAGRAM From TMR0 Clock Source (Figure 7-5) WDT Timer WDT Enable Bit Note: PSA and PS<2:0> are bits in the OPTION register. TABLE 9-8: SUMMARY OF WATCHDOG TIMER REGISTERS Address Name (1) 2007h MCLRE Config. bits 81h OPTION GPPU Legend: Shaded cells are not used by the Watchdog Timer ...

Page 67

... GP0, GP1 or GP2. The pin which will be connected to the BACT pin has to be configured to wake the micro- controller up from SLEEP (2) OST T Interrupt Latency (Note 3) Processor in SLEEP PC+2 PC Inst( Inst( Dummy cycle Preliminary PIC16C433 0004h 0005h Inst(0004h) Inst(0005h) Dummy cycle Inst(0004h) DS41139B-page 65 ...

Page 68

... Least Significant bits of the ID location are used. 9.11 In-Circuit Serial Programming PIC16C433 microcontrollers can be serially pro- grammed, 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 69

... INSTRUCTION SET SUMMARY Each PIC16C433 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 PIC16C433 instruction set summary in Table 10-2 lists byte-oriented, bit-ori- ented, and literal and control operations. Table 10-1 shows the opcode field descriptions ...

Page 70

... PIC16C433 10.1 Special Function Registers as Source/Destination The PIC16C433’s orthogonal instruction set allows read and write of all file registers, including special function registers. There are some special situations specified in the following sections the user should be aware of. 10.1.1 STATUS AS DESTINATION If an instruction writes to STATUS, the Z, C and DC bits may be set or cleared as a result of the instruction and overwrite the original data bits written ...

Page 71

... Preliminary PIC16C433 Status Notes Affected LSb C,DC,Z 1,2 ffff Z 1,2 ffff Z 2 ffff Z 0011 Z 1,2 ffff Z 1,2 ffff 1,2,3 ffff Z 1,2 ffff ...

Page 72

... PIC16C433 10.2 Instruction Descriptions ADDLW Add Literal and W Syntax: [ label ] ADDLW 0 ≤ k ≤ 255 Operands: ( → (W) Operation: 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 register. Words: 1 Cycles: ...

Page 73

... Operation: Status Affected: Encoding: bfff ffff Description: Words: Cycles: Example bfff ffff 7 Preliminary PIC16C433 Bit Test, Skip if Clear [ label ] BTFSC f,b 0 ≤ f ≤ 127 0 ≤ b ≤ 7 skip if (f<b> None 01 10bb bfff ffff If bit 'b' in register 'f' is '0', then the next instruction is skipped. ...

Page 74

... PIC16C433 BTFSS Bit Test f, Skip if Set Syntax: [ label ] BTFSS f,b 0 ≤ f ≤ 127 Operands: 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 instruc- tion fetched during the current ...

Page 75

... Operation: Status Affected: None Encoding: Description: dfff ffff Words: Cycles: Example 0x13 0x13 0xEC Preliminary PIC16C433 Decrement f [ label ] DECF f,d 0 ≤ f ≤ 127 d ∈ [0,1] ( → (dest 0011 dfff ffff Decrement register 'f the result is stored in the W regis- ter the result is stored back in register 'f' ...

Page 76

... PIC16C433 GOTO Unconditional Branch Syntax: [ label ] GOTO k 0 ≤ k ≤ 2047 Operands: k → PC<10:0> Operation: PCLATH<4:3> → PC<12:11> Status Affected: None Encoding: 10 1kkk Description: GOTO is an unconditional branch. The eleven-bit immediate value is loaded into PC bits <10:0>. The upper bits of PC are loaded from PCLATH< ...

Page 77

... LOOP MOVLW Syntax: Operands: Operation: Status Affected: Encoding: Description: Words: Cycles: Example kkkk kkkk Preliminary PIC16C433 Inclusive OR W with f [ label ] IORWF f,d 0 ≤ f ≤ 127 d ∈ [0,1] (W) .OR. (f) → (dest 0100 dfff ffff Inclusive OR the W register with register 'f the result is placed in the W register ...

Page 78

... The contents of the W register are loaded in the OPTION register. This instruction is supported for code compatibility with PIC16C5X products. Since OPTION is a read- able/writable register, the user can directly address it maintain upward compatibility with future PIC16C433 products, do not use this instruction.  2002 Microchip Technology Inc. ...

Page 79

... Syntax: Operands: Operation: Status Affected: Encoding: 0000 1001 Description: Words: Cycles: Example kkkk Preliminary PIC16C433 Return from Subroutine [ label ] RETURN None TOS → PC None 00 0000 0000 1000 Return from subroutine. The stack is POPed and the top of the stack (TOS) is loaded into the program counter ...

Page 80

... PIC16C433 RLF Rotate Left f through Carry Syntax: [ label ] RLF f,d 0 ≤ f ≤ 127 Operands: 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 the result is placed in the W register the result is stored back in register 'f' ...

Page 81

... Words: 1 Cycles: 1 Example 1: 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 PIC16C433 0010 dfff ffff REG1 result is positive = result is zero = ...

Page 82

... PIC16C5X products. Since TRIS registers are readable and writ- able, the user can directly address them. Words: 1 Cycles: 1 Example To maintain upward compatibility with future PIC16C433 products, do not use this instruction. DS41139B-page 80 XORLW Syntax: Operands: Operation: Status Affected: Encoding: Description: dfff ...

Page 83

... The MPASM assembler features include: • Integration into MPLAB IDE projects • User defined macros to streamline assembly code • Conditional assembly for multi-purpose source files • Directives that allow complete control over the assembly process Preliminary PIC16C433 ® ® standard HEX DS41139B-page 81 ...

Page 84

... PIC16C433 11.3 MPLAB C17 and MPLAB C18 C Compilers The MPLAB C17 and MPLAB C18 Code Development Systems are complete ANSI C compilers for Microchip’s PIC17CXXX and PIC18CXXX family of microcontrollers. These compilers provide powerful integration capabilities, superior code optimization and ease of use not found with other compilers. ...

Page 85

... The PICSTART Plus development programmer supports most PICmicro devices pins. Larger pin count devices, such as the PIC16C92X and PIC17C76X, may be supported with an adapter socket. The PICSTART Plus development programmer is CE compliant. Preliminary PIC16C433 TM TM (ICSP ) DS41139B-page 83 ...

Page 86

... PIC16C433 11.14 PICDEM 1 PICmicro Demonstration Board The PICDEM 1 demonstration board demonstrates the capabilities of the PIC16C5X PIC16C58A), PIC16C61, PIC16C62X, PIC16C71, PIC16C8X, PIC17C42, PIC17C43 and PIC17C44. All necessary hardware and software is included to run basic demo programs. The sample microcontrollers provided with the PICDEM 1 demonstration board can be programmed with a PRO MATE II device program- mer PICSTART Plus development programmer ...

Page 87

... Demonstration Board The powerful LIN hardware and software kit includes a series of boards and three PICmicro microcontrollers. The small footprint PIC16C432 and PIC16C433 are used as slaves in the LIN communication and feature on-board LIN transceivers. A PIC16F874 FLASH microcontroller serves as the master. All three micro- controllers are programmed with firmware to provide LIN bus communication ...

Page 88

... PIC16C433 TABLE 11-1: DEVELOPMENT TOOLS FROM MICROCHIP dsPIC30F PIC18FXXX PI18CX01 PIC18CXX2 PIC17C7XX PIC17C4X PIC16C9XX PIC16F8XX PIC16C8X PIC16C7X5 PIC16C7XX PIC16C7X PIC16F62X PIC16C43X PIC16CXXX PIC16C6X PIC16C5X PIC14000 PIC12FXXX PIC12CXXX Tools Software Emulators Debugger Programmers DS41139B-page 86 Kits Eval and Boards Preliminary  2002 Microchip Technology Inc. ...

Page 89

... ELECTRICAL SPECIFICATIONS FOR PIC16C433 Absolute Maximum Ratings † Ambient Temperature under bias .............................................................................................................. -40° to +125°C Storage Temperature ................................................................................................................................ -65° to +150°C Voltage on any pin with respect Voltage on V with respect to V ................................................................................................................ 0 to +7. Voltage on MCLR with respect ..............................................................................................................0 to +14V SS Voltage on LIN and V ...

Page 90

... PIC16C433 FIGURE 12-1: PIC16C433 VOLTAGE-FREQUENCY GRAPH, -40°C ≤ T 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. ...

Page 91

... SLEEP mode, with all I/O pins in hi-impedance state and tied to V LIN Bus transceiver will still draw current. Please refer to Table 12-1. 5: INTRC calibration value is for 4 MHz nominal at 5V, 25°C.  2002 Microchip Technology Inc. PIC16C433 (Industrial, Extended) Standard Operating Conditions (unless otherwise specified) -40°C ≤ T Operating Temperature -40° ...

Page 92

... Note 1: In EXTRC oscillator configuration, the OSC1/CLKIN pin is a Schmitt Trigger input not recommended that the PIC16C433 be driven with external clock in RC mode. 2: The leakage current on the MCLR pin is strongly dependent on the applied voltage level. The specified levels represent normal operating conditions. Higher leakage current may be measured at different input voltages. ...

Page 93

... Note 1: In EXTRC oscillator configuration, the OSC1/CLKIN pin is a Schmitt Trigger input not recommended that the PIC16C433 be driven with external clock in RC mode. 2: The leakage current on the MCLR pin is strongly dependent on the applied voltage level. The specified levels represent normal operating conditions. Higher leakage current may be measured at different input voltages. ...

Page 94

... PIC16C433 TABLE 12-1: LIN TRANSCEIVER OPERATING SPECIFICATIONS Operating Conditions: V range as described in Table 12-1, -40°C < Param Characteristics No. D313 V Quiescent Operating Current DD D314 V Low Power Current BAT TABLE 12-2: LIN TRANSCEIVER INTERFACE SPECIFICATIONS Operating Conditions: V range as described in Table 12-1, -40°C<T DD Param Characteristics No. ...

Page 95

... OSC2 for OSC2 output  2002 Microchip Technology Inc. T Time osc OSC1 SCK T0CKI t1 T1CKI Period R Rise V Valid Z Hi-impedance Load condition Pin Master = 900Ω minimum L Preliminary PIC16C433 V BAT 550 1000Ω typical 1100Ω maximum DS41139B-page 93 ...

Page 96

... All devices are tested to operate at Min. values with an external clock applied to the OSC1/CLKIN pin. When an external clock input is used, the Max. cycle time limit is DC (no clock) for all devices. OSC2 is discon- nected (has no loading) for the PIC16C433. DS41139B-page 94 Q1 ...

Page 97

... TABLE 12-4: CALIBRATED INTERNAL RC FREQUENCIES - PIC16C433 Standard Operating Conditions (unless otherwise specified) AC Characteristics Operating Temperature Operating Voltage V Parameter Sym No. Internal Calibrated RC Frequency * These parameters are characterized but not tested. Note 1: Data in the Typical (“Typ”) column is at 5V, 25°C unless otherwise stated. These parameters are for design guidance only and are not tested.  ...

Page 98

... PIC16C433 FIGURE 12-4: CLKOUT AND I/O TIMING Q4 OSC1 CLKOUT I/O Pin (Input) I/O Pin Old Value (Output) Note: Refer to Figure 12-2 for load conditions. TABLE 12-5: CLKOUT AND I/O TIMING REQUIREMENTS Param Sym Characteristic No. 10* TosH2ckL OSC1↑ to CLKOUT↓ 11* TosH2ckH OSC1↑ ...

Page 99

... Microchip Technology Inc Min Typ† Max Units µs 2 — — OSC — 1024T — — 132 ms µs — — 2.1 Preliminary PIC16C433 36 34 Conditions 5V, -40°C to +125° 5V, -40°C to +125°C OSC T = OSC1 period 5V, -40°C to +125°C DS41139B-page 97 ...

Page 100

... PIC16C433 FIGURE 12-6: TIMER0 CLOCK TIMINGS GP2/T0CKI TMR0 Note: Refer to Figure 12-2 for load conditions. TABLE 12-7: TIMER0 AND TIMER1 EXTERNAL CLOCK REQUIREMENTS Param Sym Characteristic No. 40* Tt0H T0CKI High Pulse Width No Prescaler 41* Tt0L T0CKI Low Pulse Width No Prescaler 42* Tt0P T0CKI Period ...

Page 101

... GP3 285K 346K 343K 414K 368K 457K 431K 504K 247K 292K 288K 341K 306K 371K 351K 407K Preliminary PIC16C433 Max Units Ω 63K Ω 63K Ω 63K Ω 63K Ω 20K Ω 23K Ω 25K Ω 28K Ω 417K Ω ...

Page 102

... PIC16C433 TABLE 12-9: LIN bus AC CHARACTERISTICS Symbol Parameter  dV/dt  Slope rising and falling edges T Propagation delay of trans_pd transmitter T Propagation delay of rec_pd receiver T Symmetry of receiver rec_sym propagation delay rising edge w.r.t. falling edge T Symmetry of transmitter trans_sym propagation delay rising edge w.r.t. falling edge Note 1: Rising edge is system dependent ...

Page 103

... FIGURE 12-7: TIMING DIAGRAM TxD (Input of Physical Layer) t trans_pdf Bus Signal Rec. Threshold Rec. Threshold t rec_pdf RxD (Physical Layer Output)  2002 Microchip Technology Inc. t trans_pdr Preliminary PIC16C433 t rec_pdr DS41139B-page 101 ...

Page 104

... PIC16C433 TABLE 12-11: A/D CONVERTER CHARACTERISTICS: Param Sym Characteristic No. R A01 N Resolution A02 E ABS Total absolute error IL A03 E Integral linearity error DL A04 E Differential linearity error A05 E FS Full scale error OFF A06 E Offset error A10 — Monotonicity REF A20 V Reference voltage ...

Page 105

... OSC — § — 1.5 § — — CY cycle. Preliminary PIC16C433 NEW_DATA DONE Units Conditions µs ≥ 2.5V T OSC based, V REF µs A/D RC mode µs A/D RC mode Tad µs µs The minimum time is the amplifier setting time ...

Page 106

... PIC16C433 NOTES: DS41139B-page 104 Preliminary  2002 Microchip Technology Inc. ...

Page 107

... Microchip Technology Inc. FIGURE 13-2: CALIBRATED INTERNAL RC 4.50 4.40 4.30 4.20 4.10 = 5.0V) DD 4.00 3.90 3.80 3.70 3.60 Max. 3.50 -40 Temperature (Degree °C) 85 125 Preliminary PIC16C433 FREQUENCY RANGE VS. TEMPERATURE (V = 2.5V) DD (INTERNAL RC IS CALIBRATED TO 25°C, 5.0V) Max. Min . 125 DS41139B-page 105 ...

Page 108

... PIC16C433 TABLE 13-1: DYNAMIC I (TYPICAL) - WDT ENABLED, 25°C DD Oscillator External RC Internal *Does not include current through external R&C. FIGURE 13-3: WDT TIMER TIMEOUT PERIOD vs 2.5 3.5 4 (Volts) DS41139B-page 106 Frequency 2.5V 400 µA* 4 MHz 400 µA 4 MHz 400 µA 4 MHz 15 µA ...

Page 109

... OH V (Volts) FIGURE 13- -10 -15 -20 -25 -30 -35 -40 3.5 4.0 4 (Volts)  2002 Microchip Technology Inc. FIGURE 13- 3.5 3 5.0 5.5 Preliminary PIC16C433 vs 2. Max -40°C Typ +25°C Min +85°C Min +125°C 0.25 0.5 0.75 1 (Volts) DS41139B-page 107 ...

Page 110

... PIC16C433 FIGURE 13- 0.25 0 (Volts) DS41139B-page 108 FIGURE 13- Max -40° Typ +25° Min +85°C 15 Min +125° 0.75 1.0 0 Preliminary vs 5. Max -40°C Typ +25°C Min +85°C Min +125°C 0.25 0.5 0.75 1 (Volts)  2002 Microchip Technology Inc. ...

Page 111

... IL IH 3.5 3.0 2.5 2.0 1.5 1.0 0.5 2.5  2002 Microchip Technology Inc. 5 Max (-40° to +125° Typ (+25° Min (-40° to +125° Max (-40° to +125° Typ (+25° Min (-40° to +125°) 3.5 4.5 5 (Volts) Preliminary PIC16C433 DS41139B-page 109 ...

Page 112

... PIC16C433 FIGURE 13-12: LIN TRANSCEIVER SHUTDOWN HYSTERESIS (V) VS. TEMPERATURE (° 120 0 115 120 125 DS41139B-page 110 135.2 143.1 135.2 143.1 130 135 140 145 Temperature (°C) Preliminary 150.0 V BAT = 18. 5.0V TXD = 0V Temp (Shutdown) Temp (Recover) 150 155  2002 Microchip Technology Inc. ...

Page 113

... For PICmicro device 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 -I/P423 0007CDK Example -I/SO218 0007CDK Example 16C433 /JW 0007CBA Preliminary PIC16C433 DS41139B-page 111 ...

Page 114

... PIC16C433 18-Lead Plastic Dual In-line (P) – 300 mil (PDIP β eB 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 115

... L .016 .033 .050 .009 .011 .012 B .014 .017 .020 α β Preliminary PIC16C433 α A2 MILLIMETERS MIN NOM MAX 18 1.27 2.36 2.50 2.64 2.24 2.31 2.39 0.10 0.20 0.30 10.01 10.34 10.67 7.39 7.49 7.59 11.33 11.53 11.73 0.25 ...

Page 116

... PIC16C433 18-Lead Ceramic Dual In-line with Window (JW) – 300 mil (CERDIP Dimension Limits Number of Pins Pitch Top to Seating Plane Ceramic Package Height Standoff Shoulder to Shoulder Width Ceramic Pkg. Width Overall Length Tip to Seating Plane Lead Thickness Upper Lead Width Lower Lead Width Overall Row Spacing § ...

Page 117

... APPENDIX A: COMPATIBILITY To convert code written for PIC16C5X to PIC16C433, the user should take the following steps: 1. Remove any program memory page select operations (PA2, PA1, PA0 bits) for CALL, GOTO. 2. Revisit any computed jump operations (write add to PC, etc.) to make sure page bits are set properly under the new scheme ...

Page 118

... PIC16C433 NOTES: DS41139B-page 116 Preliminary  2002 Microchip Technology Inc. ...

Page 119

... Changing Prescaler (Timer0 to WDT) ....................... 41 Changing Prescaler (WDT to Timer0) ....................... 41 Indirect Addressing ................................................... 23 Code Protection ...........................................................51 COMF Instruction .............................................................. 73 Computed GOTO .............................................................. 22 Configuration Bits .............................................................. and AC Characteristics ............................................. 105 DC bit ................................................................................ 15 DC Characteristics PIC16C433 ................................................................ 89 DECF Instruction ............................................................... 73 DECFSZ Instruction .......................................................... 73 Development Support ....................................................3 Diagrams - See Block Diagrams Digit Carry bit ....................................................................... 7 Direct Addressing .............................................................. EEPROM Peripheral Operation ......................................... 33 ...

Page 120

... PICDEM 1 Low Cost PICmicro Demonstration Board ....... 84 PICDEM 17 Demonstration Board .................................... 84 PICDEM 2 Low Cost PIC16CXX Demonstration Board .... 84 PICSTART Plus Entry Level Development Programmer .. 83 PIE1 Register .................................................................... 18 Pinout Description PIC16C433 .................................................................. 9 PIR1 Register .................................................................... 19 POP ................................................................................... 22 POR ................................................................................... 56 Oscillator Start-up Timer (OST) ...........................51 Power Control Register (PCON) ............................... 56 Power-on Reset (POR) ................................ 51 Power-up Timer (PWRT) ...

Page 121

... PS0 bit ............................................................................... 16 PS1 bit ............................................................................... 16 PS2 bit ............................................................................... 16 PSA bit ............................................................................... 16 PUSH ................................................................................. Oscillator ...................................................................... 53 Read Modify Write ............................................................. 31 Read-Modify-Write ............................................................. 31 Register File ....................................................................... 11 Registers Map PIC16C433 ........................................................ 12 RESET Conditions ..................................................... 57 RESET ........................................................................ 51 RESET Conditions for Special Registers ........................... 57 RETFIE Instruction ............................................................ 77 RETLW Instruction ............................................................. 77 RETURN Instruction .......................................................... 77 RLF Instruction .................................................................. 78 RP0 bit ........................................................................ 11 RP1 bit ............................................................................... 15 RRF Instruction .................................................................. 78 S Services One-Time-Programmable (OTP) ...

Page 122

... PIC16C433 NOTES: DS41139B-page 120 Preliminary  2002 Microchip Technology Inc. ...

Page 123

... 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 PIC16C433 092002 DS41139B-page121 ...

Page 124

... Telephone: (_______) _________ - _________ Application (optional): Would you like a reply? Y Device: PIC16C433 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 125

... 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 Preliminary PIC16C433 PIC16C433-I/P = Industrial temp., PDIP, 4 MHz - 10 MHz, normal V DD limits PIC16C433-E/P = Extended temp., PDIP, 4 MHz - 10 MHz, normal V DD limits DS41139B-page 123 ...

Page 126

... 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