Mixed Signal PICtail™ Demo
Board User’s Guide
2004 Microchip Technology Inc.
DS51523A-page 29
Appendix C. MixedSignal_V100.asm Description
TABLE C-1:
MIXEDSIGNAL_V100.ASM
TITLE “Mixed Signal PICtail(TM) Board Firmware”
;***************************************************************************************
; Author: Jim Simons
; Tools: MPLAB(R) IDE 6.62 using MPLINK(tm) Linker
; Editor: ComicSans 8pt w/8 character Tabs
; Files: MixedSignal_v100.asm
; DAC_dtmf.asm
; MixedSignal_16f767i.lkr
; p16f767inc
;
; Description: Use the DIP Switches to select the mode of operation. The PIC(R) MCU then
; polls for changes in the DIP switches. If a change is detected for 100mS during 500ms of
; scanning, a new mode is selected.
;
; MCP4922 DAC modes
; Mode0000: Flash LEDs and Dial a phone number stored in memory.
; Mode0001: Send 000h & FFFh commands to generate a 100Hz R-R output on the MCP4922.
; Mode0010: Send 400h & BFFh commands to generate a 100Hz output on the MCP4922.
; Mode0011: DACA = SHDN, DACB = SHDN, PIC = SLEEP
; Mode0100: DACB & DACA = 800h & Read w/PIC16F767 10b ADC, “broadcast on USART”
; Mode0101: DACB = 801h, DACA = 800h & Read w/MCP3302 13b Dif, “broadcast on USART”
; Mode0110: DACB & DACA = 800h & Read w/MCP3551, “broadcast on USART”
; Mode0111: Open for user to define their own routine.
; TC132X DAC modes (MUST DEFINE WHICH SPECIFIC DEVICE BELOW)
; Mode1000: Flash LEDs and generate a 100Hz 32step sine wave on the TC1321.
; Mode1001: Send 000h & FFFh commands to generate a 100Hz R-R output on the TC1321.
; Mode1010: Send 400h & BFFh commands to generate a 100Hz output on the TC1321.
; Mode1011: DAC = SHDN, PIC = SLEEP
; Mode1100: DAC = 200h & Read w/PIC16F767 10b ADC, “broadcast on USART”
; Mode1101: DAC = 200h & Read w/MCP3302 13b single-ended, “broadcast on USART”
; Mode1110: Open for user to define their own routine.
; Mode1111: Open for user to define their own routine.
;
;***************************************************************************************
Due to file size, only the first page of MixedSignal_V100.asm is shown in Table C-1. Please refer to the
Microchip web site at www.microchip.com to download and view the latest version of this firmware.
Software License Agreement
The software supplied herewith by Microchip Technology Incorporated (the “Company”) is intended and supplied to you, the
Company’s customer, for use solely and exclusively with products manufactured by the Company.
The software is owned by the Company and/or its supplier, and is protected under applicable copyright laws. All rights are reserved.
Any use in violation of the foregoing restrictions may subject the user to criminal sanctions under applicable laws, as well as to civil
liability for the breach of the terms and conditions of this license.
THIS SOFTWARE IS PROVIDED IN AN “AS IS” CONDITION. NO WARRANTIES, WHETHER EXPRESS, IMPLIED OR STATU-
TORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICU-
LAR PURPOSE APPLY TO THIS SOFTWARE. THE COMPANY SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR
SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER.