PIC24FJ256GB206-I/MR Microchip Technology Inc., PIC24FJ256GB206-I/MR Datasheet - Page 70

no-image

PIC24FJ256GB206-I/MR

Manufacturer Part Number
PIC24FJ256GB206-I/MR
Description
16-bit, 256KB Flash, 96K RAM, USB, 64 QFN 9x9x0.9mm TUBE
Manufacturer
Microchip Technology Inc.
Datasheet

Specifications of PIC24FJ256GB206-I/MR

A/d Inputs
16 Channel, 10-bit
Comparators
3
Cpu Speed
16 MIPS
Eeprom Memory
0 Bytes
Input Output
52
Interface
I2C/SPI/UART/USART/USB
Memory Type
Flash
Number Of Bits
16
Package Type
64-pin QFN
Programmable Memory
256K Bytes
Ram Size
98K Bytes
Speed
32 MHz
Temperature Range
–40 to 85 °C
Timers
5-16-bit
Voltage, Range
2.2-3.6 V
Lead Free Status / Rohs Status
RoHS Compliant part Electrostatic Device
PIC24FJ256GB210 FAMILY
4.2.5.2
In order to write data to EDS space, such as in EDS
reads, an Address Pointer is set up by loading the
required EDS page number into the DSWPAG register
and assigning the offset address to one of the W regis-
ters. Once the above assignment is done, then the
FIGURE 4-6:
When the MSb of EA is ‘1’, the lower 9 bits of DSWPAG
are concatenated to the lower 15 bits of EA to form a
24-bit EDS address for write operations. Example 4-2
shows how to write a byte, word and double-word to
EDS.
EXAMPLE 4-2:
DS39975A-page 70
; Set the EDS page where the data to be written
;Write a byte to the selected location
;Write a word to the selected location
;Write a Double - word to the selected location
mov
mov
mov
bset
mov
mov
mov.b
mov.b
mov
mov
mov
mov
mov.d
Data Write into EDS Space
#0x0002 , w0
w0 , DSWPAG
#0x0800 ,
w1 , #15
#0x00A5 , w2
#0x003C , w3
w2 , [w1++]
w3 , [w1++]
#0x1234
w2 , [w1]
#0x1122 , w2
#0x4455 , w3
w2 , [w1]
8
EDS ADDRESS GENERATION FOR WRITE OPERATIONS
EDS WRITE CODE IN ASSEMBLY
, w2
DSWPAG Reg
w1
9 Bits
;page 2 is selected for write
;select the location (0x800) to be written
;set the MSB of the base address, enable EDS mode
;write High byte
;
;
;2 EDS writes
Select
;write Low byte
0
1
24-Bit EA
Wn
EDS window is enabled by setting bit 15 of the working
register, assigned with the offset address, and the
accessed location can be written.
Figure 4-2 illustrates how the EDS space address is
generated for write operations.
15 Bits
Wn<0> is Byte Select
 2010 Microchip Technology Inc.

Related parts for PIC24FJ256GB206-I/MR