PIC18F1330T-I/SO Microchip Technology, PIC18F1330T-I/SO Datasheet - Page 14
![8KB, Flash, 256bytes-RAM, 16I/O, 8-bit Family,nanoWatt,MotorControl 18 SOIC .300](/photos/6/76/67656/150-18-soic_sml.jpg)
PIC18F1330T-I/SO
Manufacturer Part Number
PIC18F1330T-I/SO
Description
8KB, Flash, 256bytes-RAM, 16I/O, 8-bit Family,nanoWatt,MotorControl 18 SOIC .300
Manufacturer
Microchip Technology
Series
PIC® 18Fr
Datasheets
1.PIC16F616T-ISL.pdf
(8 pages)
2.AC162078.pdf
(318 pages)
3.PIC18F1220-ISO.pdf
(36 pages)
4.PIC18F1230-ISO.pdf
(6 pages)
5.PIC18F1230-ISO.pdf
(12 pages)
6.PIC18F1230-ISO.pdf
(4 pages)
Specifications of PIC18F1330T-I/SO
Core Processor
PIC
Core Size
8-Bit
Speed
40MHz
Connectivity
UART/USART
Peripherals
Brown-out Detect/Reset, LVD, POR, PWM, WDT
Number Of I /o
16
Program Memory Size
8KB (4K x 16)
Program Memory Type
FLASH
Eeprom Size
128 x 8
Ram Size
256 x 8
Voltage - Supply (vcc/vdd)
4.2 V ~ 5.5 V
Data Converters
A/D 4x10b
Oscillator Type
Internal
Operating Temperature
-40°C ~ 85°C
Package / Case
18-SOIC (7.5mm Width)
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Other names
PIC18F1330T-I/SOTR
Available stocks
Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC18F1330T-I/SO
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
PIC18F1230/1330
3.2
Programming code memory is accomplished by first
loading data into the write buffer and then initiating a
programming sequence. The write and erase buffer
sizes, shown in Table 3-4, can be mapped to any
location of the same size, beginning at 000000h. The
actual memory write sequence takes the contents of
this buffer and programs the proper amount of code
memory that contains the Table Pointer.
The programming duration is externally timed and is
controlled by PGC. After a Start Programming
command is issued (4-bit command, ‘1111’), a NOP is
issued, where the 4th PGC is held high for the duration
of the programming time, P9.
After PGC is brought low, the programming sequence
is terminated. PGC must be held low for the time
specified by parameter P10 to allow high-voltage
discharge of the memory array.
TABLE 3-5:
DS39752B-page 14
Step 1: Direct access to code memory and enable writes.
Step 2: Load write buffer.
Step 3: Repeat for all but the last two bytes.
Step 4: Load write buffer for the last two bytes.
To continue writing data, repeat steps 2 through 4, where the Address Pointer is incremented by 2 at each iteration of the loop.
Command
0000
0000
0000
0000
0000
0000
0000
0000
1101
1111
0000
4-Bit
Code Memory Programming
8E A6
9C A6
0E <Addr[21:16]>
6E F8
0E <Addr[15:8]>
6E F7
0E <Addr[7:0]>
6E F6
<MSB><LSB>
<MSB><LSB>
00 00
WRITE CODE MEMORY CODE SEQUENCE
Data Payload
BSF
BCF
MOVLW <Addr[21:16]>
MOVWF TBLPTRU
MOVLW <Addr[15:8]>
MOVWF TBLPTRH
MOVLW <Addr[7:0]>
MOVWF TBLPTRL
Write 2 bytes and post-increment address by 2.
Write 2 bytes and start programming.
NOP - hold PGC high for time P9 and low for time P10.
EECON1, EEPGD
EECON1, CFGS
The code sequence to program a PIC18F1230/1330
device is shown in Table 3-5. The flowchart, shown in
Figure 3-4, depicts the logic necessary to completely
write a PIC18F1230/1330 device. The timing diagram
that details the Start Programming command and
parameters P9 and P10 is shown in Figure 3-5.
TABLE 3-4:
PIC18F1230
PIC18F1330
Note:
Device
Core Instruction
The TBLPTR register must point to the
same region when initiating the program-
ming sequence as it did when the write
buffers were loaded.
WRITE AND ERASE BUFFER
SIZES
Write Buffer
Size (bytes)
© 2009 Microchip Technology Inc.
8
Erase Buffer
Size (bytes)
64