MA330028 Microchip Technology, MA330028 Datasheet - Page 226
MA330028
Manufacturer Part Number
MA330028
Description
Daughter Cards & OEM Boards dsPIC33EP64MC504 PIM
Manufacturer
Microchip Technology
Datasheet
1.MA240028.pdf
(510 pages)
Specifications of MA330028
Rohs
yes
Product
Daughter Cards
Core
dsPIC
Description/function
Plug-in-module with dsPIC33EP64MC504 device for use with DM330021 and DM330023 motor control development board
Interface Type
CAN, I2C, SPI
Operating Supply Voltage
3 to 3.6 V
Tool Is For Evaluation Of
dsPIC33EP64MC504
For Use With
DM330021, DM330023
Available stocks
Company
Part Number
Manufacturer
Quantity
Price
Company:
Part Number:
MA330028
Manufacturer:
MICROCHIP
Quantity:
12 000
- Current page: 226 of 510
- Download datasheet (5Mb)
16.1.2
On
PIC24EPXXXMC20X devices, write protection is
implemented for the IOCONx and FCLCONx registers.
The write protection feature prevents any inadvertent
writes to these registers. This protection feature can be
controlled by the PWMLOCK Configuration bit
(FOSCSEL<6>). The default state of the write
protection feature is enabled (PWMLOCK = 1). The
write protection feature can be disabled by configuring
PWMLOCK = 0.
EXAMPLE 16-1:
DS70657E-page 226
; FLT32 pin must be pulled low externally in order to clear and disable the fault
; Writing to FCLCON1 register requires unlock sequence
mov #0xabcd,w10
mov #0x4321,w11
mov #0x0000,w0
mov w10, PWMKEY
mov w11, PWMKEY
mov w0,FCLCON1
; Set PWM ownership and polarity using the IOCON1 register
; Writing to IOCON1 register requires unlock sequence
mov #0xabcd,w10
mov #0x4321,w11
mov #0xF000,w0
mov w10, PWMKEY
mov w11, PWMKEY
mov w0,IOCON1
WRITE-PROTECTED REGISTERS
dsPIC33EPXXXMC20X/50X
PWM WRITE-PROTECTED REGISTER UNLOCK SEQUENCE
; Load first unlock key to w10 register
; Load second unlock key to w11 register
; Load desired value of FCLCON1 register in w0
; Write first unlock key to PWMKEY register
; Write second unlock key to PWMKEY register
; Write desired value to FCLCON1 register
; Load first unlock key to w10 register
; Load second unlock key to w11 register
; Load desired value of IOCON1 register in w0
; Write first unlock key to PWMKEY register
; Write second unlock key to PWMKEY register
; Write desired value to IOCON1 register
and
Preliminary
To gain write access to these locked registers, the user
application must write two consecutive values of
(0xABCD and 0x4321) to the PWMKEY register to
perform the unlock operation. The write access to the
IOCONx or FCLCONx registers must be the next SFR
access following the unlock process. There can be no
other SFR accesses during the unlock process and
subsequent write access. To write to both the IOCONx
and
operations.
The correct unlocking sequence is described in
Example
FCLCONx
16-1.
© 2011-2012 Microchip Technology Inc.
registers
requires
two
unlock
Related parts for MA330028
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet: