MA240026 Microchip Technology, MA240026 Datasheet - Page 140

no-image

MA240026

Manufacturer Part Number
MA240026
Description
Daughter Cards & OEM Boards PIC24FJ16MC102 Plug-In Module
Manufacturer
Microchip Technology
Datasheet

Specifications of MA240026

Rohs
yes
Data Bus Width
16 bit
Description/function
PIC24F 28 Pin QFN to 100 Pin Plug-in-Module
Interface Type
I2C, SPI, UART
Maximum Operating Temperature
+ 125 C
Minimum Operating Temperature
- 40 C
Operating Supply Voltage
3 V to 3.6 V

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
MA240026
Manufacturer:
MICROCHIP
Quantity:
12 000
PIC24FJ16MC101/102
EXAMPLE 15-1:
EXAMPLE 15-2:
DS39997B-page 140
; FLTA1 pin must be pulled high externally in order to clear and disable the fault
; Writing to P1FLTBCON register requires unlock sequence
mov #0xabcd,w10
mov #0x4321,w11
mov #0x0000,w0
mov w10, PWM1KEY
mov w11, PWM1KEY
mov w0,P1FLTACON
; FLTB1 pin must be pulled high externally in order to clear and disable the fault
; Writing to P1FLTBCON register requires unlock sequence
mov #0xabcd,w10
mov #0x4321,w11
mov #0x0000,w0
mov w10, PWM1KEY
mov w11, PWM1KEY
mov w0,P1FLTBCON
; Enable all PWMs using PWM1CON1 register
; Writing to PWM1CON1 register requires unlock sequence
mov #0xabcd,w10
mov #0x4321,w11
mov #0x0077,w0
mov w10, PWM1KEY
mov w11, PWM1KEY
mov w0,PWM1CON1
// FLTA1 pin must be pulled high externally in order to clear and disable the fault
// Writing to P1FLTACON register requires unlock sequence
// Use builtin function to write 0x0000 to P1FLTACON register
__builtin_write_PWMSFR(&P1FLTACON, 0x0000, &PWM1KEY);
// FLTB1 pin must be pulled high externally in order to clear and disable the fault
// Writing to P1FLTBCON register requires unlock sequence
// Use builtin function to write 0x0000 to P1FLTBCON register
__builtin_write_PWMSFR(&P1FLTBCON, 0x0000, &PWM1KEY);
// Enable all PWMs using PWM1CON1 register
// Writing to PWM1CON1 register requires unlock sequence
// Use builtin function to write 0x0077 to PWM1CON1 register
__builtin_write_PWMSFR(&PWM1CON1, 0x0077, &PWM1KEY);
ASSEMBLY CODE EXAMPLE FOR WRITE-PROTECTED REGISTER UNLOCK
AND FAULT CLEARING SEQUENCE
C CODE EXAMPLE FOR WRITE-PROTECTED REGISTER UNLOCK AND FAULT
CLEARING SEQUENCE
; Load first unlock key to w10 register
; Load second unlock key to w11 register
; Load desired value of P1FLTACON register in w0
; Write first unlock key to PWM1KEY register
; Write second unlock key to PWM1KEY register
; Write desired value to P1FLTACON register
; Load first unlock key to w10 register
; Load second unlock key to w11 register
; Load desired value of P1FLTBCON register in w0
; Write first unlock key to PWM1KEY register
; Write second unlock key to PWM1KEY register
; Write desired value to P1FLTBCON register
; Load first unlock key to w10 register
; Load second unlock key to w11 register
; Load desired value of PWM1CON1 register in w0
; Write first unlock key to PWM1KEY register
; Write second unlock key to PWM1KEY register
; Write desired value to PWM1CON1 register
Preliminary
© 2011 Microchip Technology Inc.

Related parts for MA240026