button - Routines for Dallas Button memory from

button - Routines for Dallas Button memory from - ; ;...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
; ; Dallas TouchMemory routines ; (c) 1997 Pavel Korensky <[email protected]> ; ; Freely usable for non-commercional use. ; Commercional use strictly prohibited ; ; DS_PORT equ PORTA ; Dallas port DS_BIT equ 4 ; Dallas bit ; ; Dallas TouchMemory commands - Touch Multikey specifically ; READ_ROM equ 0x33 SKIP_ROM equ 0xCC MATCH_ROM equ 0x55 WRITE_SCR equ 0x96 READ_SCR equ 0x69 COPY_SCR equ 0x3C WRITE_PSW equ 0x5A WRITE_SUB equ 0x99 READ_SUB equ 0x66 FAM_MULTIKEY equ 0x02 ;***************************************************************** ; ; Some macros ; ;***************************************************************** DSIN macro ; Set Dallas as input bsf STATUS, RP0 bsf TRISA,DS_BIT bcf STATUS, RP0 endm DSOUT macro ; Set Dallas as output - 1 bsf STATUS, RP0 bcf TRISA, DS_BIT bcf STATUS, RP0 bsf DS_PORT, DS_BIT endm ;************************************************************ ; ; Touch Memory routines ; ;************************************************************ ;************************************************************ ;
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
; Delay 67 us - For PRESENCE routine ; ;************************************************************ D67us: movlw 6 movwf del4 D67l_4 movlw 1 movwf del3 D67l_3 movlw 1 movwf del2 D67l_2 movlw 5 movwf del1 D67l_1 decfsz del1 goto D67l_1 decfsz del2 goto D67l_2 decfsz del3 goto D67l_3 decfsz del4 goto D67l_4 retlw 0 ;************************************************************ ; ; Delay 498 us - For RESET pulse ; ;************************************************************ D498us:
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 02/18/2012 for the course ECE 101 taught by Professor Binsaprat during the Spring '12 term at Albany State University.

Page1 / 6

button - Routines for Dallas Button memory from - ; ;...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online