PIC18F248-E/SO Microchip Technology, PIC18F248-E/SO Datasheet - Page 322

no-image

PIC18F248-E/SO

Manufacturer Part Number
PIC18F248-E/SO
Description
IC,MICROCONTROLLER,8-BIT,PIC CPU,CMOS,SOP,28PIN,PLASTIC
Manufacturer
Microchip Technology
Series
PIC® 18Fr

Specifications of PIC18F248-E/SO

Rohs Compliant
YES
Core Processor
PIC
Core Size
8-Bit
Speed
40MHz
Connectivity
CAN, I²C, SPI, UART/USART
Peripherals
Brown-out Detect/Reset, LVD, POR, PWM, WDT
Number Of I /o
22
Program Memory Size
16KB (8K x 16)
Program Memory Type
FLASH
Eeprom Size
256 x 8
Ram Size
768 x 8
Voltage - Supply (vcc/vdd)
4.2 V ~ 5.5 V
Data Converters
A/D 5x10b
Oscillator Type
External
Operating Temperature
-40°C ~ 125°C
Package / Case
28-SOIC (7.5mm Width)
Processor Series
PIC18F
Core
PIC
Data Bus Width
8 bit
Data Ram Size
768 B
Interface Type
SPI, I2C, USART
Maximum Clock Frequency
40 MHz
Number Of Programmable I/os
22
Number Of Timers
4 bit
Operating Supply Voltage
2 V to 5.5 V
Maximum Operating Temperature
+ 125 C
Mounting Style
SMD/SMT
3rd Party Development Tools
52715-96, 52716-328, 52717-734, 52712-325, EWPIC18
Development Tools By Supplier
PG164130, DV164035, DV244005, DV164005, PG164120, ICE2000, DM163011, DV164136
Minimum Operating Temperature
- 40 C
On-chip Adc
5 bit
Data Rom Size
256 B
Height
2.05 mm
Length
17.9 mm
Supply Voltage (max)
5.5 V
Supply Voltage (min)
4.2 V
Width
7.5 mm
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Lead Free Status / RoHS Status
Lead free / RoHS Compliant

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC18F248-E/SO
Manufacturer:
MICROCH
Quantity:
20 000
Part Number:
PIC18F248-E/SO
0
Company:
Part Number:
PIC18F248-E/SO
Quantity:
57
TBLWT
Syntax:
Operands:
Operation:
Status Affected: None
Encoding:
Description:
DS41159E-page 320
PIC18FXX8
Table Write
[ label ]
None
if TBLWT*,
(TABLAT)
TBLPTR – No Change;
if TBLWT*+,
(TABLAT)
(TBLPTR) + 1
if TBLWT*-,
(TABLAT)
(TBLPTR) – 1
if TBLWT+*,
(TBLPTR) + 1
(TABLAT)
This instruction uses the 3 LSBs of TBLPTR to
determine which of the 8 holding registers the
TABLAT is written to. The holding registers are
used to program the contents of Program
Memory (P.M.). (Refer to Section 6.0 “Flash
Program Memory” for additional details.)
The TBLPTR (a 21-bit pointer) points to each
byte in the program memory. TBLPTR has a
2-Mbyte address range. The LSb of the
TBLPTR selects which byte of the program
memory location to access.
The TBLWT instruction can modify the value
of TBLPTR as follows:
• no change
• post-increment
• post-decrement
• pre-increment
0000
TBLPTR[0] = 0:
TBLPTR[0] = 1:
TBLWT ( *; *+; *-; +*)
Holding Register;
Holding Register;
Holding Register;
Holding Register;
0000
TBLPTR;
TBLPTR;
TBLPTR;
Least Significant Byte
of Program Memory
Word
Most Significant Byte
of Program Memory
Word
0000
nn=0 *
11nn
=1 *+
=2 *-
=3 +*
TBLWT Table Write (Continued)
Words: 1
Cycles: 2
Q Cycle Activity:
Example 1:
Example 2:
Before Instruction
After Instructions (table write completion)
Before Instruction
After Instruction (table write completion)
operation
Decode
Q1
No
TABLAT
TBLPTR
HOLDING REGISTER
(0x00A356)
TABLAT
TBLPTR
HOLDING REGISTER
(0x00A356)
TABLAT
TBLPTR
HOLDING REGISTER
(0x01389A)
HOLDING REGISTER
(0x01389B)
TABLAT
TBLPTR
HOLDING REGISTER
(0x01389A)
HOLDING REGISTER
(0x01389B)
No operation
operation
TABLAT)
(Read
Q2
No
TBLWT
TBLWT
© 2006 Microchip Technology Inc.
*+;
+*;
operation
operation
Q3
=
=
=
=
=
=
=
=
=
=
=
=
=
=
No
No
0x55
0x00A356
0xFF
0x55
0x00A357
0x55
0x34
0x01389A
0xFF
0xFF
0x34
0x01389B
0xFF
0x34
(Write to Holding
No operation
operation
Register)
Q4
No

Related parts for PIC18F248-E/SO