PIC16F1938-I/SP Microchip Technology, PIC16F1938-I/SP Datasheet - Page 110
![IC MCU 8BIT FLASH 28-DIP](/photos/6/59/65908/150-28-dip_sml.jpg)
PIC16F1938-I/SP
Manufacturer Part Number
PIC16F1938-I/SP
Description
IC MCU 8BIT FLASH 28-DIP
Manufacturer
Microchip Technology
Series
PIC® XLP™ 16Fr
Datasheets
1.PIC16F722-ISS.pdf
(8 pages)
2.PIC16LF1933-ISS.pdf
(508 pages)
3.PIC16LF1933-ISS.pdf
(46 pages)
4.PIC16F1938-ISS.pdf
(10 pages)
Specifications of PIC16F1938-I/SP
Core Size
8-Bit
Program Memory Size
28KB (16K x 14)
Core Processor
PIC
Speed
32MHz
Connectivity
I²C, LIN, SPI, UART/USART
Peripherals
Brown-out Detect/Reset, LCD, POR, PWM, WDT
Number Of I /o
25
Program Memory Type
FLASH
Eeprom Size
256 x 8
Ram Size
1K x 8
Voltage - Supply (vcc/vdd)
1.8 V ~ 5.5 V
Data Converters
A/D 11x10b
Oscillator Type
Internal
Operating Temperature
-40°C ~ 85°C
Package / Case
28-DIP (0.300", 7.62mm)
Controller Family/series
PIC16F
Eeprom Memory Size
256Byte
Ram Memory Size
1024Byte
Cpu Speed
32MHz
No. Of Timers
5
Interface
EUSART, I2C, SPI
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
- PIC16F722-ISS PDF datasheet
- PIC16LF1933-ISS PDF datasheet #2
- PIC16LF1933-ISS PDF datasheet #3
- PIC16F1938-ISS PDF datasheet #4
- Current page: 110 of 508
- Download datasheet (5Mb)
PIC16F193X/LF193X
9.1.1
When global interrupts are disabled (GIE cleared) and
any interrupt source has both its interrupt enable bit
and interrupt flag bit set, one of the following will occur:
• If the interrupt occurs before the execution of a
FIGURE 9-1:
TABLE 9-1:
DS41364D-page 110
Name
INTCON
IOCBF
IOCBN
IOCBP
PIE1
PIE2
PIE3
PIR1
PIR2
PIR3
STATUS
WDTCON
Legend:
Instruction Flow
SLEEP instruction
- SLEEP instruction will execute as a NOP.
- WDT and WDT prescaler will not be cleared
- TO bit of the STATUS register will not be set
- PD bit of the STATUS register will not be
(INTCON reg.)
Note
Interrupt flag
GIE bit
Instruction
Fetched
Instruction
Executed
CLKOUT
cleared.
OSC1
1:
2:
3:
4:
PC
(1)
(2)
— = unimplemented location, read as ‘0’. Shaded cells are not used in Power-down mode.
WAKE-UP USING INTERRUPTS
XT, HS or LP Oscillator mode assumed.
CLKOUT is not available in XT, HS, or LP Oscillator modes, but shown here for timing reference.
T
GIE = 1 assumed. In this case after wake-up, the processor calls the ISR at 0004h. If GIE = 0, execution will continue in-line.
TMR1GIE
TMR1GIF
OST
IOCBN7
IOCBP7
IOCBF7
Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4 Q1
Inst(PC) = Sleep
OSFIE
OSFIF
Bit 7
GIE
—
—
—
—
Inst(PC - 1)
= 1024 T
SUMMARY OF REGISTERS ASSOCIATED WITH POWER-DOWN MODE
PC
WAKE-UP FROM SLEEP THROUGH INTERRUPT
OSC
IOCBF6
IOCBN6
IOCBP6
CCP5IE
CCP5IF
PEIE
ADIE
ADIF
Bit 6
C2IE
C2IF
(drawing not to scale). This delay applies only to XT, HS or LP Oscillator modes.
—
—
Inst(PC + 1)
Sleep
PC + 1
TMR0IE
IOCBN5
IOCBP5
IOCBF5
CCP4IE
CCP4IF
RCIE
RCIF
Bit 5
C1IE
C1IF
—
Processor in
Sleep
IOCBN4
IOCBF4
IOCBP4
CCP3IE
CCP3IF
PC + 2
INTE
TXIE
EEIE
TXIF
EEIF
Bit 4
TO
Preliminary
T
OST (3)
WDTPS<4:0>
IOCBF3
IOCBN3
IOCBP3
TMR6IE
TMR6IF
Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4
SSPIE
BCLIE
SSPIF
BCLIF
IOCIE
Bit 3
Interrupt Latency
Inst(PC + 2)
Inst(PC + 1)
PD
• If the interrupt occurs during or after the execu-
Even if the flag bits were checked before executing a
SLEEP instruction, it may be possible for flag bits to
become set before the SLEEP instruction completes. To
determine whether a SLEEP instruction executed, test
the PD bit. If the PD bit is set, the SLEEP instruction
was executed as a NOP.
PC + 2
tion of a SLEEP instruction
- SLEEP instruction will be completely exe-
- Device will immediately wake-up from Sleep
- WDT and WDT prescaler will be cleared
- TO bit of the STATUS register will be set
- PD bit of the STATUS register will be cleared.
cuted
IOCBN2
IOCBP2
CCP1IE
TMR0IF
IOCBF2
CCP1IF
LCDIE
LCDIF
Bit 2
—
—
Z
(4)
Dummy Cycle
PC + 2
IOCBN1
TMR2IE
IOCBF1
IOCBP1
TMR4IE
TMR2IF
TMR4IF
Bit 1
INTF
DC
—
—
2009 Microchip Technology Inc.
Dummy Cycle
Inst(0004h)
0004h
SWDTEN
IOCBF0
IOCBN0
IOCBP0
TMR1IE
CCP2IE
TMR1IF
CCP2IF
IOCIF
Bit 0
—
—
C
Inst(0005h)
Inst(0004h)
Register on
0005h
Page
150
150
150
100
101
102
103
104
105
113
99
29
Related parts for PIC16F1938-I/SP
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
![PIC16F1826-I/SO](/photos/6/76/67656/150-18-soic_tmb.jpg)
Part Number:
Description:
IC, 8BIT MCU, PIC16F, 32MHZ, SOIC-18
Manufacturer:
Microchip Technology
Datasheet:
![PIC16F1826-I/SS](/photos/6/81/68119/150-28-ssop_tmb.jpg)
Part Number:
Description:
IC, 8BIT MCU, PIC16F, 32MHZ, SSOP-20
Manufacturer:
Microchip Technology
Datasheet:
![PIC16F1826-I/P](/images/manufacturer_photos/0/4/439/microchip_technology_tmb.jpg)
Part Number:
Description:
IC, 8BIT MCU, PIC16F, 32MHZ, DIP-18
Manufacturer:
Microchip Technology
Datasheet:
![PIC16F1827-I/ML](/photos/6/81/68120/150-28-qfn_tmb.jpg)
Part Number:
Description:
IC, 8BIT MCU, PIC16F, 32MHZ, QFN-28
Manufacturer:
Microchip Technology
Datasheet:
![PIC16F1826-I/MV](/photos/12/13/121305/c04-152_mv_tmb.jpg)
Part Number:
Description:
IC, 8BIT MCU, PIC16F, 32MHZ, QFN-28
Manufacturer:
Microchip Technology
Datasheet:
![PIC16F1827-I/MV](/photos/12/13/121305/c04-152_mv_tmb.jpg)
Part Number:
Description:
IC, 8BIT MCU, PIC16F, 32MHZ, QFN-28
Manufacturer:
Microchip Technology
Datasheet:
![PIC16F1827-I/SS](/photos/6/81/68119/150-28-ssop_tmb.jpg)
Part Number:
Description:
IC, 8BIT MCU, PIC16F, 32MHZ, SSOP-20
Manufacturer:
Microchip Technology
Datasheet:
![PIC16F727-E/P](/photos/6/61/66192/150-40-dip_tmb.jpg)
Part Number:
Description:
IC, 8BIT MCU, PIC16F, 20MHZ, DIP-40
Manufacturer:
Microchip Technology
Datasheet:
![PIC16F1827-I/MQ](/photos/18/99/189937/4243194_tmb.jpg)
Part Number:
Description:
IC, 8BIT MCU, PIC16F, 32MHZ, QFN-28
Manufacturer:
Microchip Technology
Datasheet:
![PIC16F874-20/PQ](/photos/6/59/65984/150-44-pqfp_tmb.jpg)
Part Number:
Description:
IC, 8BIT MCU, PIC16F, 20MHZ, MQFP-44
Manufacturer:
Microchip Technology
Datasheet:
![PIC16F690-E/ML](/photos/6/64/66481/c04-126_ml_tmb.jpg)
Part Number:
Description:
IC, 8BIT MCU, PIC16F, 20MHZ, QFN-20
Manufacturer:
Microchip Technology
Datasheet:
![PIC16F1826-I/MQ](/images/manufacturer_photos/0/4/439/microchip_technology_tmb.jpg)
Part Number:
Description:
IC, 8BIT MCU, PIC16F, 32MHZ, QFN-28
Manufacturer:
Microchip Technology
Datasheet:
![PIC16F1526-I/PT](/photos/16/3/160367/tqfp-64_tmb.jpg)
Part Number:
Description:
MCU 14KB FLASH 768B RAM 64-TQFP
Manufacturer:
Microchip Technology
Datasheet:
![PIC16F1827-E/MQ](/images/manufacturer_photos/0/4/439/microchip_technology_tmb.jpg)
Part Number:
Description:
7 KB Flash, 384 Bytes RAM, 32 MHz Int. Osc, 16 I/0, Enhanced Mid Range Core, Low
Manufacturer:
Microchip Technology
![PIC16F1937-E/MV](/photos/16/12/161286/qfn44_tmb.jpg)
Part Number:
Description:
14KB Flash, 512B RAM, 256B EEPROM, LCD, 1.8-5.5V 40 UQFN 5x5x0.5mm TUBE
Manufacturer:
Microchip Technology
Datasheet: