dsPICDEM? MC1H 3-Phase High Voltage Power Module
B.1
PIC ? MCU CODE AND DATA CYCLE DIAGRAM FOR SERIAL INTERFACE
;**********************************************************
;* 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.
;* If transmission is corrupted, MCLR is asserted to re-sync
;* 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"
BYTE_TO_SEND
STARTUP_TIMER
SCK
SDO
EQU
EQU
EQU
EQU
0x20
0x21
0x05
0x04
; Start at the reset vector
org 0x000
Start
;begin in bank0 initially
clrf
GPIO
;Clear GPIO
bsf STATUS,5
movlw 0x0f
movwf TRISIO
movlw 0X02
movwf ADCON1
call 0x03ff
movwf OSCCAL
;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
DS70096A-page 48
clrf
STATUS
;select bank0 FOR REST OF CODE
? 2003 Microchip Technology Inc.
相关PDF资料
DM300022 MODULE PWR DSPICDEM MC1L LV 3PHS
DM320002 BOARD EXPANSION PIC32 I/O
DM320003-2 KIT EVAL PIC32 USB II STARTER
DM320003 BOARD DEMO USB PIC32 OTG
DM320005 BOARD EXPANSION FOR PIC32 KIT
DM320011 BOARD AUDIO DEV FOR PIC32
DM330015 KIT STARTER MOTR CTRL DSPIC33E
DM330021 KIT DEMO DSPIC33 MCLV
相关代理商/技术参数
DM300021 制造商:Microchip Technology Inc 功能描述:MODULE dsPICDEM MC1H 3 PHASE
DM300022 功能描述:开发板和工具包 - PIC / DSPIC Low V Pwr Module RoHS:否 制造商:Microchip Technology 产品:Starter Kits 工具用于评估:chipKIT 核心:Uno32 接口类型: 工作电源电压:
DM300023 功能描述:开发板和工具包 - PIC / DSPIC dsPICDEM SMPS Buck Demo Brd RoHS:否 制造商:Microchip Technology 产品:Starter Kits 工具用于评估:chipKIT 核心:Uno32 接口类型: 工作电源电压:
DM300024 功能描述:开发板和工具包 - PIC / DSPIC dsPICDEM 1.1 GP RoHS:否 制造商:Microchip Technology 产品:Starter Kits 工具用于评估:chipKIT 核心:Uno32 接口类型: 工作电源电压:
DM300027 功能描述:开发板和工具包 - PIC / DSPIC 16-bit Starter Demo Board RoHS:否 制造商:Microchip Technology 产品:Starter Kits 工具用于评估:chipKIT 核心:Uno32 接口类型: 工作电源电压:
DM-3-000-K 制造商:PacTec 功能描述:Case, Plastic; ABS; Black; 11.46 in.; 3.38 in.; 10.4 in.; UL 94-HB Rated 制造商:PacTec 功能描述:ENCLOSURE, DESKTOP, PLASTIC, BLACK; Enclosure Type:Desktop; Enclosure Material:Plastic; Body Color:Black; External Height - Imperial:3.38"; External Height - Metric:86mm; External Width - Imperial:10.4"; External Width - Metric:264mm;RoHS Compliant: Yes
DM-300-C 制造商:Greenlee Textron Inc 功能描述:DMM 1000V RMS
DM-301 制造商:Labfacility Limited 功能描述:SENSOR PT100 THIN FILM 2X2.3MM CL B 制造商:LABFACILITY 功能描述:SENSOR, PT100, THIN FILM, 2X2.3MM, CL B 制造商:LABFACILITY 功能描述:TEMPERATURE RTD SENSOR, -70C to +500C, 100 OHM; Sensing Temperature Min:-70C; Sensing Temperature Max:+500C; Resistance:100ohm; Sensor Terminals:Through Hole; Temperature Sensing Range:-70C to +500C ;RoHS Compliant: Yes