DM300022 Microchip Technology, DM300022 Datasheet - Page 51
DM300022
Manufacturer Part Number
DM300022
Description
MODULE PWR DSPICDEM MC1L LV 3PHS
Manufacturer
Microchip Technology
Specifications of DM300022
Main Purpose
Power Management, Motor Control
Embedded
Yes, MCU, 16-Bit
Utilized Ic / Part
dsPIC33FJxxxMC
Primary Attributes
3-Phase Low Voltage Power Module
Secondary Attributes
Motion Sensor Inputs: Hall Sensors or Optical Encoder
Silicon Manufacturer
Microchip
Silicon Core Number
DsPICDEM MC1L
Kit Application Type
Power Management - Motor Control
Application Sub Type
3 Phase Motor
Silicon Family Name
Piccolo
Rohs Compliant
Yes
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
© 2003 Microchip Technology Inc.
Initial_Capture
delay
finish_1st_conversion
;**************************************************************
Main
;begin to transmit value from channel 0
movlw 0x41
movwf ADCON0
movlw 0x04
movwf STARTUP_TIMER
decf
btfss STATUS,Z
goto
bsf
btfsc ADCON0,GO
goto
movf
movwf BYTE_TO_SEND
nop
movlw 0x51
movwf ADCON0
bcf
bsf
btfsc BYTE_TO_SEND,7
bsf
bcf
bcf
bsf
btfsc BYTE_TO_SEND,6
bsf
bcf
bcf
bsf
btfsc BYTE_TO_SEND,5
bsf
bcf
bcf
bsf
btfsc BYTE_TO_SEND,4
bsf
bcf
STARTUP_TIMER,F
delay
ADCON0,GO
finish_1st_conversion
ADRES,W
GPIO,SDO
GPIO,SCK
GPIO,SDO
GPIO,SCK
GPIO,SDO
GPIO,SCK
GPIO,SDO
GPIO,SCK
GPIO,SDO
GPIO,SCK
GPIO,SDO
GPIO,SCK
GPIO,SDO
GPIO,SCK
GPIO,SDO
GPIO,SCK
;before starting SPI transmission,
;aquire &convert ADC ch0, BUS_SENSE
;set:Fosc/8, A/D enable, ch0 select
;begin sampling ch0
;wait for approx 20us aquisition time
;Start A/D conversion Channel 0
;wait for end of conversion flag
;extra wait before starting new aquisi-
tion
;Fosc/8, A/D enabled, ch 2 selected
;begin sampling channel 2 |VAC|_SENSE
;send bit 7
;send bit 6
;send bit 5
;send bit 4
Appendix
DS70097A-page 45