PIC16C433T-I/SO Microchip Technology, PIC16C433T-I/SO Datasheet

IC MCU CMOS 8BIT 10MHZ 2K 18SOIC

PIC16C433T-I/SO

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

Specifications of PIC16C433T-I/SO

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-SOIC (7.5mm Width)
For Use With
AC164030 - MODULE SKT PROMATEII 28DIP/SOIC
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Eeprom Size
-
PIC16C433
Data Sheet
8-Bit CMOS Microcontroller
with LIN Transceiver
Preliminary
 2002 Microchip Technology Inc.
DS41139B

Related parts for PIC16C433T-I/SO

PIC16C433T-I/SO 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

... Thermal Shutdown for transceiver • Ground loss protection • Four-channel, 8-bit A/D converter • 8-bit real-time clock/counter (TMR0) with 8-bit programmable prescaler  2002 Microchip Technology Inc. PIC16C433 PIN DIAGRAM PDIP, SOIC, Windowed CERDIP GP5/OSC1/CLKIN GP4/OSC2/AN3/CLKOUT ...

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. DS41139B-page 2 Preliminary  2002 Microchip Technology Inc. ...

Page 5

... Power Saving mode. The user can wake-up the chip from SLEEP through several external and internal interrupts and RESETS.  2002 Microchip Technology Inc. A highly reliable Watchdog Timer with its own on-chip RC oscillator provides protection against software lock- up ...

Page 6

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

Page 7

... The devices are identical to the OTP devices, but with all EPROM locations and configuration options already programmed by the factory. Certain code and prototype verification procedures apply before produc- tion shipments are available. Please contact your local Microchip Technology sales office for more details. 2.4 Serialized Quick-Turn Programming SM (SQTP ...

Page 8

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

Page 9

... PIC16C433 simple, yet efficient. In addition, the learn- ing curve is reduced significantly.  2002 Microchip Technology Inc. PIC16C433 devices contain an 8-bit ALU and working register. The ALU is a general purpose arithmetic unit. It performs arithmetic and Boolean functions between the data in the working register and any register file ...

Page 10

... Addr MUX Indirect 7 8 Addr FSR reg STATUS reg 3 MUX Power-up Timer Oscillator ALU Watchdog 8 Timer Power-on W reg Reset Timer0 A/D Preliminary GPIO GP0/AN0 REF GP1/AN1/V GP2/T0CKI/AN2/INT PP GP3/MCLR/V GP4/OSC2/AN3/CLKOUT GP5/OSC1/CLKIN LIN bus LIN bus V BAT Transceiver BACT  2002 Microchip Technology Inc. ...

Page 11

... Legend Input Output, I/O = Input/Output Power, — = not used, TTL = TTL input Schmitt Trigger input Open Drain  2002 Microchip Technology Inc. I/O/P Buffer Type Type I/O TTL/ST Bi-directional I/O port/serial programming data/analog input 0. Can be software programmed for internal weak pull-up and interrupt-on-pin change ...

Page 12

... Q2, Q3, and Q4 cycles. Data memory is read during Q2 (operand read) and written during Q4 (destination write PC+1 Fetch INST (PC+1) Execute INST (PC Execute 1 Fetch 2 Execute 2 Fetch 3 Execute 3 Fetch 4 Preliminary Internal Phase Clock PC+2 Fetch INST (PC+2) Execute INST (PC+ Flush Fetch SUB_1 Execute SUB_1  2002 Microchip Technology Inc. ...

Page 13

... Stack Level 8 RESET Vector Peripheral Interrupt Vector On-Chip Program Memory  2002 Microchip Technology Inc. 4.2 Data Memory Organization The data memory is partitioned into two banks, which contain the General Purpose Registers and the Special Function Registers. Bit RP0 is the bank select bit. ...

Page 14

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

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

Page 16

... PCFG1 PCFG0 ---- -000 ---- -000  2002 Microchip Technology Inc. ...

Page 17

... Legend Readable bit - n = Value at POR  2002 Microchip Technology Inc recommended, therefore, that only BCF, BSF, SWAPF and MOVWF instructions are used to alter the STATUS Register, because these instructions do not affect the bits from the STATUS Register ...

Page 18

... 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 R/W-1 R/W-1 R/W-1 PS2 PS1 PS0 bit0 x = Bit is unknown  2002 Microchip Technology Inc. ...

Page 19

... GP0, GP1 or GP3 pins changed state (must be cleared in software Neither GP0, GP1 nor GP3 pins have changed state Legend Readable bit - n = Value at POR  2002 Microchip Technology Inc. Note: Interrupt flag bits get set when an interrupt condition occurs, regardless of the state of its corresponding enable bit or the global enable bit, GIE (INTCON< ...

Page 20

... Bit PEIE (INTCON<6>) must be set to enable any peripheral interrupt. 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  2002 Microchip Technology Inc. U-0 U-0 — — bit0 x = Bit is unknown ...

Page 21

... The A/D conversion is not complete bit 5-0 Unimplemented: Read as '0' Legend Readable bit - n = Value at POR  2002 Microchip Technology Inc. Note: Interrupt flag bits get set when an interrupt condition occurs, regardless of the state of its corresponding enable bit or the global enable bit, GIE (INTCON<7>). User soft- ...

Page 22

... Value at POR DS41139B-page 20 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 U-0 R/W-0 U-0 — POR — bit0 x = Bit is unknown  2002 Microchip Technology Inc. ...

Page 23

... CALSLW: Calibration Slow bit 1 = Decrease frequency change bit 1-0 Unimplemented: Read as '0' Note: If CALFST = 1 and CALSLW = 1, CALFST has precedence. Legend Readable bit - n = 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’ ...

Page 24

... 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 paging bits  2002 Microchip Technology Inc. ...

Page 25

... Bank 0 For register file map detail see Figure 4-2. Note 1: The RP1 and IRP bits are reserved; always maintain these bits clear.  2002 Microchip Technology Inc. A simple program to clear RAM locations 20h-2Fh using indirect addressing is shown in Example 4-1. EXAMPLE 4-1: ...

Page 26

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

Page 27

... For input operations, these ports are non-latching. Any input must be present until read by an input instruction (i.e., MOVF GPIO,W). The  2002 Microchip Technology Inc. outputs are latched and remain unchanged until the output latch is rewritten. To use a port pin as output, the corresponding direction control bit in TRIS must be cleared (= 0) ...

Page 28

... Q WR 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 PIN V DD I/O Pin V SS TTL Input Buffer  2002 Microchip Technology Inc. ...

Page 29

... FIGURE 5-2: 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 ...

Page 30

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

... BLOCK DIAGRAM OF GP4/OSC2/AN3/CLKOUT PIN OSC CLKOUT (F /4) Data Bus PORT CK Q Data Latch 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 ...

Page 32

... GP3 GP2 GP1 Preliminary DD V I/O Pin SS V INTRC TTL Input Buffer Value on Value on Power-on all other Bit 0 Reset RESETS --11 1111 --11 1111 PS0 1111 1111 1111 1111 C 0001 1xxx 000q quuu GP0 11xx xxxx 11uu uuuu  2002 Microchip Technology Inc. ...

Page 33

... BCF, BSF, etc port, the value of the port pins is read, the desired operation is done to this value, and this value is then written to the port latch.  2002 Microchip Technology Inc. Example 5-1 shows the effect of two sequential read- modify-write instructions on an I/O port. ...

Page 34

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

Page 35

... Data bus Output Latch Read GPIO  2002 Microchip Technology Inc. LIN communication. If the LINTX bit is left cleared (e.g., CLRF GPIO), no other nodes on the network will be able to communicate on the LIN Bus until LINTX is set to '1' for '0' is the dominate state for the protocol. ...

Page 36

... SLEEP. Any one of the four GPIO pins can be used for wake-up where GPIO<2> offers multiple con- figuration options (Section 9.5.2) and GPIO<0:1,3> are interrupt-on-change (Section 9.5.3). Note: BACT pin is an output and must be left open if unused. Preliminary LIN Transceiver  2002 Microchip Technology Inc. ...

Page 37

... FIGURE 6-3: TYPICAL LIN BUS MASTER APPLICATION Note 1: May not be required. 2: BACT pin should be left open if not used. FIGURE 6-4: 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Ω ...

Page 38

... Legend unknown unchanged. Shaded cells not used by LIN Transceiver. DS41139B-page 36 +5V +12V BAT BACT (1) GP2 1kΩ LIN To LIN Bus Note Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 GP5 GP4 GP3 GP2 GP1 Preliminary Value on Value on: Bit 0 All Other POR RESETS GP0 11xx xxxx 11uu uuuu  2002 Microchip Technology Inc. ...

Page 39

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

Page 40

... Interrupt Latency Inst (PC+1) Dummy cycle Inst (PC instruction cycle time. Preliminary PC+4 PC+5 PC+6 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 41

... 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 pres- caler, so that the prescaler output is symmetrical. For the external clock to meet the sampling requirement, the ripple-counter must be taken into account ...

Page 42

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

Page 43

... TRIS — — Legend unknown unchanged unimplemented locations read as '0'. Shaded cells are not used by Timer0.  2002 Microchip Technology Inc. To change prescaler from the WDT to the Timer0 mod- ule, use the sequence shown in Example 7-2. EXAMPLE 7-2: CLRWDT BSF ...

Page 44

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

Page 45

... A/D converter module is shut-off and consumes no operating current Legend Readable bit - n = Value at POR  2002 Microchip Technology Inc. The ADCON0 Register, shown in Figure 8-1, controls the operation of the A/D module. The ADCON1 Regis- ter, shown in Figure 8-2, configures the functions of the port pins ...

Page 46

... GP4 GP2 GP1 REF REF REF Writable bit U = Unimplemented bit, read as ‘0’ ’1’ = Bit is set ’0’ = Bit is cleared Preliminary R/W-0 R/W-0 R/W-0 PCFG2 PCFG1 PCFG0 bit0 GP0 V REF GP1 GP1 GP1 Bit is unknown  2002 Microchip Technology Inc. ...

Page 47

... Turn on A/D module (ADCON0) FIGURE 8-1: A/D BLOCK DIAGRAM A/D Converter V REF (Reference Voltage)  2002 Microchip Technology Inc. 2. Configure A/D interrupt (if desired): • Clear ADIF bit • Set ADIE bit • Set GIE bit 3. Wait the required acquisition time. 4. ...

Page 48

... ACQ 10.724 µs + 1.25 µs 11.974 µ Sampling Switch 0.6V ≤ leakage 0.6V ± 500 Preliminary ) has no REF ) is HOLD delay must complete before AD CALCULATING THE MINIMUM REQUIRED SAMPLE TIME ( ln(1/512 HOLD C = DAC capacitance = 51 Sampling Switch (kΩ)  2002 Microchip Technology Inc. ...

Page 49

... For faster conversion times, the selection of another clock source is recommended. 4: While in RC mode, with device frequency above 1 MHz, conversion accuracy is out of specification. 5: For extended voltage devices (LC), please refer to Section 12.0, Electrical Specifications.  2002 Microchip Technology Inc. 8.3 Configuring Analog Port Pins ...

Page 50

... RC Clock, A/D is on, Channel 0 is selected ; ; Clear A/D interrupt flag bit ; Enable peripheral interrupts ; Enable all interrupts ; Start A/D Conversion ; The ADIF bit will be set and the GO/DONE bit ; is cleared upon completion of the A/D Conversion. Preliminary wait AD  2002 Microchip Technology Inc. ...

Page 51

... A/D conversion, the RC clock source selection is required. In this mode, the digital noise from the modules in SLEEP is stopped. This method gives high accuracy.  2002 Microchip Technology Inc. 8.7 Effects of a RESET A device RESET forces all registers to their RESET state ...

Page 52

... Power-on all other Reset RESETS GPIF 0000 000x 0000 000u — — -0-- ---- -0-- ---- — — -0-- ---- -0-- ---- xxxx xxxx uuuu uuuu ADON 0000 0000 0000 0000 PCFG0 ---- -000 ---- -000 GP0 11xx xxxx 11uu uuuu TRIS0 --11 1111 --11 1111  2002 Microchip Technology Inc. ...

Page 53

... R = Readable bit W = Writable bit -n = Value at POR 1 = bit is set  2002 Microchip Technology Inc. the chip in RESET until the crystal oscillator is stable. The other is the Power-up Timer (PWRT), which pro- vides a fixed delay (nominal) on power-up only, designed to keep the part in RESET while the power supply stabilizes ...

Page 54

... CAPACITOR SELECTION FOR CRYSTAL OSCILLATOR - PIC16C433 Cap. Range Cap. Range 15-30 pF 30-47 pF 15-30 pF 15-82 pF 15-30 pF 200-300 pF 15-30 pF 100-200 pF 15-30 pF 15-100 pF 15-30 pF 15-30 pF 15-30 pF 15-30 pF 15-47 pF 15-47 pF 15-30 pF 15-30 pF 15-30 pF 15-30 pF 15-30 pF 15-30 pF > 4.5V ≈ may S  2002 Microchip Technology Inc. ...

Page 55

... Devices 330 330 74AS04 74AS04 74AS04 0.1 µF XTAL  2002 Microchip Technology Inc. 9.2.4 EXTERNAL RC OSCILLATOR For timing insensitive applications, the RC device option offers additional cost savings. The RC oscillator frequency is a function of the supply voltage, the resis- tor (R ) and capacitor (C EXT ing temperature ...

Page 56

... OSC2 pin is tri-stated and driven low driven by external circuit OSC1 pin is OSC2 pin is tri-stated and tri-state input driven by external circuit OSC1 pin is OSC2 pin is tri-state input driven low OSC1 pin is OSC2 pin is tri-state input tri-state input  2002 Microchip Technology Inc. ...

Page 57

... Ripple-counter OSC1/ 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 ...

Page 58

... Reset and is unaffected otherwise. The user sets this bit following a Power-on Reset. On subsequent RESETS, if POR is ‘0’, it will indicate that a Power-on Reset must have occurred. Power-up PWRTE = 0 PWRTE = 1024T 1024T OSC OSC 72 ms — Preliminary Wake-up from SLEEP 1024T OSC —  2002 Microchip Technology Inc. ...

Page 59

... See Table 9-5 for RESET value for specific condition wake-up was due to A/D completing then bit all other interrupts generating a wake-up will cause bit wake-up was due to A/D completing then bit all other interrupts generating a wake-up will cause bit  2002 Microchip Technology Inc. Program STATUS ...

Page 60

... INTERNAL POR PWRT TIMEOUT OST TIMEOUT INTERNAL RESET FIGURE 9-9: TIMEOUT SEQUENCE ON POWER-UP (MCLR TIED MCLR INTERNAL POR PWRT TIMEOUT OST TIMEOUT INTERNAL RESET DS41139B-page 58 PWRT T OST T T PWRT OST PWRT T OST T Preliminary  2002 Microchip Technology Inc. ): CASE CASE 2 DD ...

Page 61

... Technology’s MCP809 microcontroller supervisor. The MCP8XX and MCP1XX families of supervisors provide push-pull and open collector outputs, with both high and low active RESET pins. There are 7 different trip point selections to accommodate 5V and 3V systems.  2002 Microchip Technology Inc. FIGURE 9-12: EXTERNAL BROWN-OUT DD V 33k ...

Page 62

... Individual interrupt flag bits are set, regardless of the status of their corresponding mask bit or the GIE bit. T0IF T0IE INTF INTE GPIF GPIE PEIE GIE Preliminary Wake-up (If in SLEEP mode) Interrupt to CPU  2002 Microchip Technology Inc. ...

Page 63

... T Latency is the same whether Inst (PC single cycle 2-cycle instruction. 3: CLKOUT is available only in INTRC and EXTRC oscillator modes. 4: For minimum width of INT pulse, refer to AC specs. 5: INTF is enabled to be set any time during the Q4-Q1 cycles.  2002 Microchip Technology Inc ...

Page 64

... W_TEMP is defined at 0x70 and STATUS_TEMP is defined at 0x71. The example: a) Stores the W register. b) Stores the STATUS register in bank 0. c) Executes the ISR code. d) Restores the STATUS register (and bank select bit). e) Restores the W register. f) Returns from interrupt. (INTCON<3>) Preliminary  2002 Microchip Technology Inc. ...

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

... For the device to wake-up through an interrupt event, the corresponding interrupt enable bit must be set (enabled). Wake-up is Preliminary PS<2:0> To TMR0 (Figure 7-5) PSA Bit 3 Bit 2 Bit 1 Bit 0 WDTE FOSC2 FOSC1 FOSC0 PSA PS2 PS1 PS0  2002 Microchip Technology Inc. ...

Page 67

... GIE = '1' assumed. In this case, after wakeup, the processor jumps to the interrupt routine. If GIE = '0', execution will continue in-line. 4: CLKOUT is not available in XT osc modes, but shown here for timing reference.  2002 Microchip Technology Inc. instruction will be completely executed before the wake-up. Therefore, the WDT and WDT postscaler will be cleared, the TO bit will be set and the PD bit will be cleared ...

Page 68

... For complete details of serial programming, please refer to the PIC16C433 Programming Specifications. DS41139B-page 66 FIGURE 9-18: TYPICAL IN-CIRCUIT SERIAL PROGRAMMING CONNECTION To Normal Connections External Connector Signals + CLK Data I/O To Normal Connections Preliminary  2002 Microchip Technology Inc. PIC16C433 MCLR/V GP1 GP0 DD V ...

Page 69

... User defined term (font is courier) i The instruction set is highly orthogonal and is grouped into three basic categories:  2002 Microchip Technology Inc. • Byte-oriented operations • Bit-oriented operations • Literal and control operations All instructions are executed within one single instruc- tion cycle, unless a conditional test is true or the pro- gram counter is changed as a result of an instruction ...

Page 70

... All bit manipulation instructions are done by first read- ing the entire register, operating on the selected bit and writing the result back (read-modify-write). The user should keep this in mind when operating on special function registers, such as ports. Preliminary  2002 Microchip Technology Inc. ...

Page 71

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

Page 72

... Z 00 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, Before Instruction W = 0x17 FSR = 0xC2 After Instruction W = 0x17 FSR = 0x02  2002 Microchip Technology Inc. ...

Page 73

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

Page 74

... Z bit is set CLRF FLAG_REG Before Instruction FLAG_REG = 0x5A After Instruction FLAG_REG = 0x00 Clear W [ label ] CLRW None 00h → (W) 1 → 0001 0000 0011 W register is cleared. Zero bit (Z) is set CLRW Before Instruction W = 0x5A After Instruction W = 0x00  2002 Microchip Technology Inc. ...

Page 75

... The contents of register 'f' are complemented the result is stored ' the result is stored back in register 'f'. Words: 1 Cycles: 1 Example COMF REG1,0 Before Instruction REG1 = After Instruction REG1 = W =  2002 Microchip Technology Inc. DECF Syntax: Operands: Operation: Status Affected: Encoding: Description: 0110 0100 Words: Cycles: Example ? 0x00 0 DECFSZ = 1 ...

Page 76

... INCF f,d 0 ≤ 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 register 'f INCF CNT, 1 Before Instruction CNT = 0xFF After Instruction CNT = 0x00  2002 Microchip Technology Inc. ...

Page 77

... The result is placed in the W register. Words: 1 Cycles: 1 Example IORLW 0x35 Before Instruction W = 0x9A After Instruction W = 0xBF  2002 Microchip Technology Inc. IORWF Syntax: Operands: Operation: Status Affected: Encoding: dfff ffff Description: Words: Cycles: Example CNT, 1 LOOP MOVLW Syntax: Operands: Operation: Status Affected: ...

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

... RETLW k1 ;Begin table RETLW k2 ; • • • RETLW kn ; End of table Before Instruction W = 0x07 After Instruction W = value of k8  2002 Microchip Technology Inc. RETURN Syntax: Operands: Operation: Status Affected: Encoding: 0000 1001 Description: Words: Cycles: Example kkkk Preliminary PIC16C433 Return from Subroutine ...

Page 80

... WDT prescaler, 1 → TO, 0 → 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 SLEEP  2002 Microchip Technology Inc. ...

Page 81

... Example 3: Before Instruction After Instruction W = 0xFF result is negative  2002 Microchip Technology Inc. SUBWF Subtract W from f Syntax: [ label ] SUBWF f,d 0 ≤ f ≤ 127 Operands: d ∈ [0,1] (f) - (W) → (dest) Operation: Status C, DC, Z Affected: kkkk Encoding: 00 Description: Subtract (2’s complement method) W register from register 'f' ...

Page 82

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

Page 83

... PICDEM MSC ® - microID - CAN ® - PowerSmart - Analog  2002 Microchip Technology Inc. 11.1 MPLAB Integrated Development Environment Software The MPLAB IDE software brings an ease of software development previously unseen in the 8/16-bit micro- controller market. The MPLAB IDE is a Windows based application that contains: • ...

Page 84

... MPLAB C30 C Compiler and MPLAB ASM30 assembler. The simulator runs in either a Command Line mode for automated tasks, or from MPLAB IDE. This high speed simulator is designed to debug, analyze and optimize time intensive DSP routines. Preliminary  2002 Microchip Technology Inc. economical software ...

Page 85

... The PC platform and Microsoft Windows 32-bit operating system were cho- sen to best make these features available in a simple, unified application.  2002 Microchip Technology Inc. 11.11 MPLAB ICD 2 In-Circuit Debugger Microchip’s In-Circuit Debugger, MPLAB ICD powerful, low cost, run-time development tool, connecting to the host PC via an RS-232 or high speed USB interface ...

Page 86

... PICSTART Plus development pro- grammer, can be used to reprogram the device for user tailored application development. The PICDEM 17 demonstration board supports program download and execution from external on-board FLASH memory. A generous prototype area is available for user hardware expansion. Preliminary  2002 Microchip Technology Inc. ...

Page 87

... LIN transceivers. A PIC16F874 FLASH microcontroller serves as the master. All three micro- controllers are programmed with firmware to provide LIN bus communication.  2002 Microchip Technology Inc. 11.21 PICDEM USB PIC16C7X5 Demonstration Board The PICDEM USB Demonstration Board shows off the capabilities of the PIC16C745 and PIC16C765 USB microcontrollers ...

Page 88

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

Page 89

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

Page 90

... 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, page 123 for the maximum rated speed of the parts. DS41139B-page Frequency (MHz) Preliminary ≤ +125°  2002 Microchip Technology Inc. ...

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

Page 92

... V ≤ PIN DD V µA ≤ V ≤ PIN DD , XT, HS, and LP osc configuration µA DD PIN 5V µA DD PIN 5V 8.5 mA 4.5V, -40°C to +85° 7.0 mA 4.5V, -40°C to +125° 1.6 mA 4.5V, -40°C to +85° 1.2 mA 4.5V, -40°C to +125°C V  2002 Microchip Technology Inc. ...

Page 93

... This specification applies when GP3/MCLR is configured as an input with pull-up disabled. The leakage current of the MCLR circuit is higher than the standard I/O logic. 7: LIN characterized 4 MHz, 14. This parameter is characterized, but not tested.  2002 Microchip Technology Inc. PIC16C433 (Industrial, Extended) - Continued Standard Operating Conditions (unless otherwise specified) -40°C ≤ T Operating temperature -40° ...

Page 94

... OL LIN DOMINAT — OH LIN REVERS V _ 0.05V — HYS LIN BAT I _ 0.05 — SC LIN Preliminary Max Units Comments 1 mA µA 50 LIN Bus recessive Max Units Comments 200 12V BUS BAT IH LIN IL LIN 200 mA  2002 Microchip Technology Inc. ...

Page 95

... MCLR Uppercase letters and their meanings 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 for OSC2 output  2002 Microchip Technology Inc. T Time osc OSC1 SCK T0CKI t1 T1CKI Period R Rise ...

Page 96

... HS osc mode ns HS osc mode µs LP osc mode ns EXTRC osc mode ns XT osc mode ns HS osc mode ns HS osc mode µs LP osc mode 4/F OSC ns XT oscillator µs LP oscillator ns HS oscillator ns XT oscillator ns LP oscillator ns HS oscillator  2002 Microchip Technology Inc. ...

Page 97

... 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.  2002 Microchip Technology Inc. -40°C ≤ T ≤ +85°C (industrial) A range is described in Section 10 ...

Page 98

... Typ† Max Units Conditions 75 200 ns (Note 1) 75 200 ns (Note 1) 35 100 ns (Note 1) 35 100 ns (Note 1) — 0. (Note 1) CY — — ns (Note 1) — — ns (Note 1) 50 150 ns — — ns — — — — ns — — OSC  2002 Microchip Technology Inc. ...

Page 99

... Low or Watchdog Timer Reset * These parameters are characterized but not tested. † Data in Typ column is at 5V, 25°C unless otherwise stated. These parameters are for design guidance only and are not tested.  2002 Microchip Technology Inc Min Typ† Max Units µ ...

Page 100

... With Prescaler 10 — Prescaler — With Prescaler Greater of: — OSC 2T — Preliminary Max Units Conditions — ns Must also meet parameter 42 — ns — ns Must also meet parameter 42 — ns — ns — prescale value (2, 4,..., 256) OSC 7T —  2002 Microchip Technology Inc. ...

Page 101

... These parameters are characterized but not tested.  2002 Microchip Technology Inc. Min Typ GP0/GP1 38K 42K 42K 48K 42K 49K 50K 55K 15K 17K 18K 20K 19K 22K 22K 24K GP3 285K ...

Page 102

... T µ µ µ (Note 2) Typ. Max. Unit +135 +155 1.5 Preliminary Note = max trans_pd trans_pdr trans_pdf = max rec_pd rec_pdr rec_pdf = rec_sym rec_pdf rec_pdr trans_sym trans_pdf rans_pdr Note °C Information Parameter °C Information Parameter ms Information Parameter  2002 Microchip Technology Inc. ...

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

... V = 5.12V, ≤ V ≤ AIN REF ≤ V ≤ AIN REF — kΩ µA Average current consumption when A (Note 1) µA During V AIN acquisition. Based on differential of HOLD AIN charge C HOLD , see Section 8.1. µA During A/D Conversion cycle  2002 Microchip Technology Inc. ...

Page 105

... Data in “Typ” column is at 5V, 25°C unless otherwise stated. These parameters are for design guidance only and are not tested. § This specification ensured by design. Note 1: ADRES register may be read on the following T 2: See Section 8.1 for minimum conditions.  2002 Microchip Technology Inc. (1) 131 130 6 5 ...

Page 106

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

Page 107

... CALIBRATED TO 25°C, 5.0V) 4.50 4.40 4.30 4.20 4.10 4.00 3.90 3.80 Min. 3.70 3.60 3.50 - Temperature (Degree °C)  2002 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 ° ...

Page 108

... Max +85° Typ +25°C -10 .5 MIn –40°C 5.5 6.5 Preliminary 5.5V 900 µA* 900 µA 900 µA 60 µ Min +125°C Min +85°C Typ +25°C Max -40°C .75 1.0 1.25 1.5 1.75 2.0 2.25 2 (Volts)  2002 Microchip Technology Inc. ...

Page 109

... Max -40°C -20 -25 1.5 2.0 2 (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.0 ...

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

... DD V (Volts) FIGURE 13-11 NMCLR AND T0CKI vs 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 ...

Page 112

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

... Standard PICmicro device marking consists of Microchip part number, year code, week code, and traceability code. 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 ...

Page 114

... L p MILLIMETERS MIN NOM MAX 18 2.54 3.56 3.94 4.32 2.92 3.30 3.68 0.38 7.62 7.94 8.26 6.10 6.35 6.60 22.61 22.80 22.99 3.18 3.30 3.43 0.20 0.29 0.38 1.14 1.46 1.78 0.36 0.46 0.56 7.87 9.40 10.  2002 Microchip Technology Inc. ...

Page 115

... 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: MS-013 Drawing No. C04-051  2002 Microchip Technology Inc φ Units ...

Page 116

... Microchip Technology Inc. ...

Page 117

... Eliminate any data memory page switching. Redefine data variables to reallocate them. 4. Verify all writes to STATUS, OPTION, and FSR registers since these have changed. 5. Change RESET Vector to 0000h.  2002 Microchip Technology Inc. Preliminary PIC16C433 DS41139B-page 115 ...

Page 118

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

Page 119

... Watchdog Timer ........................................................ 64 BSF Instruction .................................................................. 71 BTFSC Instruction ............................................................. 71 BTFSS Instruction .............................................................. bit ................................................................................... 15 CAL0 bit ............................................................................. 21 CAL1 bit ............................................................................. 21 CAL2 bit ............................................................................. 21 CAL3 bit ............................................................................. 21  2002 Microchip Technology Inc. CALFST bit ........................................................................ 21 CALL Instruction ................................................................ 72 CALSLW bit ....................................................................... 21 Carry bit ............................................................................... 7 Clocking Scheme .............................................................. 10 CLRF Instruction ............................................................... 72 CLRW Instruction .............................................................. 72 CLRWDT Instruction ......................................................... 73 Code Examples Changing Prescaler (Timer0 to WDT) ....................... 41 Changing Prescaler (WDT to Timer0) ...

Page 120

... Oscillator Start-up Timer (OST) ...........................51 Power Control Register (PCON) ............................... 56 Power-on Reset (POR) ................................ 51 Power-up Timer (PWRT) .....................................51 Power-up-Timer (PWRT) ........................................... 56 Time-out Sequence ................................................... 56 Time-out Sequence on Power-up .............................. ............................................................................. 54 57 Power ................................................................................ 54 Power-down Mode (SLEEP) ............................................. 64 Power-on Reset (POR) Time-out (TO Bit) ....................................................... 15 Prescaler, Switching Between Timer0 and WDT .............. 41 Preliminary  2002 Microchip Technology Inc ...

Page 121

... SUBWF Instruction ............................................................ 79 SWAPF Instruction ............................................................ 80 T T0CS bit ............................................................................. ..................................................................................... 47 Thermal Shut-down ........................................................... 34 Timer0 RTCC ......................................................................... 57 Timers Timer0 Block Diagram ................................................... 37  2002 Microchip Technology Inc. External Clock ................................................... 39 External Clock Timing ....................................... 39 Increment Delay ................................................ 39 Interrupt ............................................................. 37 Interrupt Timing ................................................. 38 Prescaler ........................................................... 40 Prescaler Block Diagram ................................... 40 Section .............................................................. 37 Switching Prescaler Assignment ....................... 41 Synchronization ................................................. 39 T0CKI ................................................................ 39 T0IF ................................................................... 62 Timing ...

Page 122

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

Page 123

... 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's development systems software products ...

Page 124

... 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? DS41139B-page122 Total Pages Sent ________ FAX: (______) _________ - _________ N Literature Number: DS41139B Preliminary  2002 Microchip Technology Inc. ...

Page 125

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