DM300022 Microchip Technology, DM300022 Datasheet - Page 50

MODULE PWR DSPICDEM MC1L LV 3PHS

DM300022

Manufacturer Part Number
DM300022
Description
MODULE PWR DSPICDEM MC1L LV 3PHS
Manufacturer
Microchip Technology
Datasheets

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
dsPICDEM™ MC1L 3-Phase Low Voltage Power Module
B.1
DS70097A-page 44
PIC
®
MCU CODE AND DATA CYCLE DIAGRAM FOR SERIAL INTERFACE
;**********************************************************
;*
;**********************************************************
;*
;*
;*
;**********************************************************
;*
;*
;*
;*
;*
;*
;*
;*
;*
;*
;*
;**********************************************************
BYTE_TO_SEND
STARTUP_TIMER
SCK
SDO
Start
If transmission is corrupted, MCLR is asserted to re-sync
50_10_v3.ASM
Smart Power Solutions LLP
13th April 2003
Assembled with MPLAB v6.13
This program continuously converts two ADC channels, AN0
& AN2 and writes the results out via SPI followed by a
control word 0xF9.
The software latency of the SPI transmission
is used to fulfill the aquire, conversion & wait time of
the ADC module for maximum data transmission rate.
transmission, therefore no watchdog is required.
SPI clock, SCK, is GP5 pin 2 idle low and data is valid on
the falling edge. SPI data out line, SDO, is PGP4 pin 3.
Use config word 0xE4 when programming
list p=12c671
; Include file, change directory if needed
include "p12c671.inc"
; Start at the reset vector
org
clrf
bsf
movlw 0x0f
movwf TRISIO
movlw 0X02
movwf ADCON1
call
movwf OSCCAL
clrf
0x000
GPIO
STATUS,5
0x03ff
STATUS
EQU
EQU
EQU
EQU
0x20
0x21
0x05
0x04
;begin in bank0 initially
;Clear GPIO
;select bank1
;GP5, GP4 outputs
;also in bank 1
;AD0,AD1 and AD2 are analog channels
;with VDD and VSS references
;factory programmed data to trim
;internal oscillator
;select bank0 FOR REST OF CODE
© 2003 Microchip Technology Inc.

Related parts for DM300022