PIC16F1938-I/ML Microchip Technology, PIC16F1938-I/ML Datasheet - Page 101

IC MCU 8BIT FLASH 28QFN

PIC16F1938-I/ML

Manufacturer Part Number
PIC16F1938-I/ML
Description
IC MCU 8BIT FLASH 28QFN
Manufacturer
Microchip Technology
Series
PIC® XLP™ 16Fr

Specifications of PIC16F1938-I/ML

Core Size
8-Bit
Program Memory Size
28KB (16K x 14)
Oscillator Type
Internal
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
Operating Temperature
-40°C ~ 85°C
Package / Case
28-VQFN Exposed Pad, 28-HVQFN, 28-SQFN, 28-DHVQFN
Controller Family/series
PIC16F
No. Of I/o's
25
Eeprom Memory Size
256Byte
Ram Memory Size
1024Byte
Cpu Speed
32MHz
Package
28QFN EP
Device Core
PIC
Family Name
PIC16
Maximum Speed
32 MHz
Operating Supply Voltage
2.5|3.3|5 V
Data Bus Width
8 Bit
Number Of Programmable I/os
25
Interface Type
I2C/SPI/USART
On-chip Adc
11-chx10-bit
Number Of Timers
5
Lead Free Status / RoHS Status
Lead free / RoHS Compliant

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC16F1938-I/ML
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
6.6
PORTE
corresponding data direction register is TRISE. Setting a
TRISE bit (= 1) will make the corresponding PORTE pin
an input (i.e., put the corresponding output driver in a
High-Impedance mode). Clearing a TRISE bit (= 0) will
make the corresponding PORTE pin an output (i.e.,
enable the output driver and put the contents of the
output latch on the selected pin). The exception is RE3,
which is input only and its TRIS bit will always read as
‘1’. Example 6-5 shows how to initialize PORTE.
Reading the PORTE register (Register 6-18) reads the
status of the pins, whereas writing to it will write to the
PORT latch. All write operations are read-modify-write
operations. Therefore, a write to a port implies that the
REGISTER 6-18:
REGISTER 6-19:
© 2009 Microchip Technology Inc.
bit 7
Legend:
R = Readable bit
u = bit is unchanged
‘1’ = Bit is set
bit 7-4
bit 3-0
Note 1:
bit 7
Legend:
R = Readable bit
u = bit is unchanged
‘1’ = Bit is set
bit 7-4
bit 3-0
Note 1:
U-0
U-0
(1)
PORTE and TRISE Registers
is a 4-bit wide, bidirectional port. The
RE<2:0> are not implemented on the PIC16F1933/1936/1938. Read as ‘0’.
Writes to PORTE are actually written to corresponding LATE register. Reads from PORTE register is
return of actual I/O pin values.
Unimplemented: Read as ‘0’
RE<3:0>: PORTE I/O Pin bits
1 = Port pin is > V
0 = Port pin is < V
Unimplemented: Read as ‘0’
LATE<3:0>: PORTE Output Latch Value bits
U-0
U-0
PORTE: PORTE REGISTER
LATE: PORTE DATA LATCH REGISTER
W = Writable bit
x = Bit is unknown
‘0’ = Bit is cleared
W = Writable bit
x = Bit is unknown
‘0’ = Bit is cleared
IH
IL
U-0
U-0
(1)
U-0
U-0
Preliminary
U = Unimplemented bit, read as ‘0’
-n/n = Value at POR and BOR/Value at all other Resets
U = Unimplemented bit, read as ‘0’
-n/n = Value at POR and BOR/Value at all other Resets
(1)
R/W-x/u
LATE3
port pins are read, this value is modified and then
written to the PORT data latch. RE3 reads ‘0’ when
MCLRE = 1.
EXAMPLE 6-5:
R-x/u
RE3
BANKSEL PORTE
CLRF
BANKSEL ANSELE
CLRF
BANKSEL TRISE
MOVLW
MOVWF
PIC16F193X/LF193X
Note 1: RE<2:0> and TRISE<2:0> pins are
PORTE
ANSELE
B‘00001100’
TRISE
available
PIC16F1938 only.
R/W-x/u
R/W-x/u
RE2
LATE2
(1)
INITIALIZING PORTE
;
;Init PORTE
;
;digital I/O
;
;Set RE<3:2> as inputs
;and set RE<1:0>
;as outputs
on
R/W-x/u
R/W-x/u
LATE1
RE1
PIC16F1936
(1)
DS41364C-page 101
R/W-x/u
R/W-x/u
RE0
LATE0
(1)
bit 0
bit 0
and

Related parts for PIC16F1938-I/ML