Electronic Components Datasheet Search
  English  ▼
ALLDATASHEET.COM

X  

PIC18F2420 Datasheet(PDF) 10 Page - Microchip Technology

Part # PIC18F2420
Description  28/40/44-Pin Enhanced Flash Microcontrollers with 10-Bit A/D and nanoWatt Technology
Download  16 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  MICROCHIP [Microchip Technology]
Direct Link  http://www.microchip.com
Logo MICROCHIP - Microchip Technology

PIC18F2420 Datasheet(HTML) 10 Page - Microchip Technology

Back Button PIC18F2420 Datasheet HTML 6Page - Microchip Technology PIC18F2420 Datasheet HTML 7Page - Microchip Technology PIC18F2420 Datasheet HTML 8Page - Microchip Technology PIC18F2420 Datasheet HTML 9Page - Microchip Technology PIC18F2420 Datasheet HTML 10Page - Microchip Technology PIC18F2420 Datasheet HTML 11Page - Microchip Technology PIC18F2420 Datasheet HTML 12Page - Microchip Technology PIC18F2420 Datasheet HTML 13Page - Microchip Technology PIC18F2420 Datasheet HTML 14Page - Microchip Technology Next Button
Zoom Inzoom in Zoom Outzoom out
 10 / 16 page
background image
PIC18F2420/2520/4420/4520
DS80209D-page 10
© 2005 Microchip Technology Inc.
31. Module: MSSP
In SPI mode, the Buffer Full flag (BF bit in the
SSPSTAT register), the Write Collision Detect bit
(WCOL bit in SSPCON1) and the Receive
Overflow Indicator bit (SSPOV in SSPCON1) are
not reset upon disabling the SPI module (by
clearing the SSPEN bit in the SSPCON1 register).
For example, if SSPBUF is full (BF bit is set) and
the MSSP module is disabled and re-enabled, the
BF bit will remain set. In SPI Slave mode, a sub-
sequent write to SSPBUF will result in a write
collision. Also, if a new byte is received, a receive
overflow will occur.
Work around
Ensure that if the buffer is full, SSPBUF is read
(thus clearing the BF flag) and WCOL is clear
before disabling the MSSP module. If the module
is configured in SPI Slave mode, ensure that the
SSPOV bit is clear before disabling the module.
32. Module: MSSP (SPI Mode)
When the SPI is using Timer2/2 as the clock
source, a shorter than expected SCK pulse may
occur on the first bit of the transmitted/received
data (Figure 1).
FIGURE 1:
SCK PULSE VARIATION
USING TIMER2/2
Work around
To avoid producing the short pulse, turn off Timer2
and clear the TMR2 register, load the SSPBUF
with the data to transmit and then turn Timer2 back
on. Refer to Example 4 for sample code.
EXAMPLE 4:
AVOIDING THE INITIAL
SHORT SCK PULSE
SDO
SCK
Write SSPBUF
bit 0 = 1 bit 1 = 0
bit 2 = 1 . . . .
LOOP BTFSS SSPSTAT, BF
;Data received?
;(Xmit complete?)
BRA
LOOP
;No
MOVF
SSPBUF, W
;W = SSPBUF
MOVWF
RXDATA
;Save in user RAM
MOVF
TXDATA, W
;W = TXDATA
BCF
T2CON, TMR2ON
;Timer2 off
CLRF
TMR2
;Clear Timer2
MOVWF
SSPBUF
;Xmit New data
BSF
T2CON, TMR2ON
;Timer2 on


Similar Part No. - PIC18F2420

ManufacturerPart #DatasheetDescription
logo
Microchip Technology
PIC18F2420 MICROCHIP-PIC18F2420 Datasheet
6Mb / 390P
   28/40/44-Pin Enhanced Flash Microcontrollers with 10-Bit A/D and nanoWatt Technology
2004
PIC18F2420 MICROCHIP-PIC18F2420 Datasheet
6Mb / 412P
   28/40/44-Pin Enhanced Flash Microcontrollers with 10-Bit A/D and nanoWatt Technology
2008
PIC18F2420 MICROCHIP-PIC18F2420 Datasheet
6Mb / 412P
   28/40/44-Pin Enhanced Flash Microcontrollers with 10-Bit A/D and nanoWatt Technology
01/02/08
PIC18F2420-E/ML MICROCHIP-PIC18F2420-E/ML Datasheet
6Mb / 412P
   28/40/44-Pin Enhanced Flash Microcontrollers with 10-Bit A/D and nanoWatt Technology
2008
PIC18F2420-E/P MICROCHIP-PIC18F2420-E/P Datasheet
6Mb / 412P
   28/40/44-Pin Enhanced Flash Microcontrollers with 10-Bit A/D and nanoWatt Technology
2008
More results

Similar Description - PIC18F2420

ManufacturerPart #DatasheetDescription
logo
Microchip Technology
PIC18F2420 MICROCHIP-PIC18F2420 Datasheet
6Mb / 390P
   28/40/44-Pin Enhanced Flash Microcontrollers with 10-Bit A/D and nanoWatt Technology
2004
PIC18F2420 MICROCHIP-PIC18F2420_08 Datasheet
6Mb / 412P
   28/40/44-Pin Enhanced Flash Microcontrollers with 10-Bit A/D and nanoWatt Technology
2008
PIC18F2620-ISO MICROCHIP-PIC18F2620-ISO Datasheet
6Mb / 412P
   28/40/44-Pin Enhanced Flash Microcontrollers with 10-Bit A/D and nanoWatt Technology
01/02/08
PIC18F2525 MICROCHIP-PIC18F2525 Datasheet
6Mb / 390P
   28/40/44-Pin Enhanced Flash Microcontrollers with 10-Bit A/D and nanoWatt Technology
2004
PIC18F2525 MICROCHIP-PIC18F2525_08 Datasheet
6Mb / 412P
   28/40/44-Pin Enhanced Flash Microcontrollers with 10-Bit A/D and nanoWatt Technology
01/02/08
PIC18F4525-I MICROCHIP-PIC18F4525-I Datasheet
6Mb / 412P
   28/40/44-Pin Enhanced Flash Microcontrollers with 10-Bit A/D and nanoWatt Technology
01/02/08
PIC18F4525-I MICROCHIP-PIC18F4525-I Datasheet
4Mb / 412P
   28/40/44-Pin Enhanced Flash Microcontrollers with 10-Bit A/D and nanoWatt Technology
01/02/08
PIC18F4321 MICROCHIP-PIC18F4321 Datasheet
6Mb / 396P
   28/40/44-Pin Enhanced Flash Microcontrollers with 10-Bit A/D and nanoWatt Technology
2007
PIC18LF4620-I MICROCHIP-PIC18LF4620-I Datasheet
6Mb / 412P
   28/40/44-Pin Enhanced Flash Microcontrollers with 10-Bit A/D and nanoWatt Technology
01/02/08
PIC18LF4520-IPT MICROCHIP-PIC18LF4520-IPT Datasheet
6Mb / 412P
   28/40/44-Pin Enhanced Flash Microcontrollers with 10-Bit A/D and nanoWatt Technology
01/02/08
More results


Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16


Datasheet Download

Go To PDF Page


Link URL




Privacy Policy
ALLDATASHEET.COM
Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Datasheet Upload   |   Contact us   |   Privacy Policy   |   Link Exchange   |   Manufacturer List
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com