From b8c4af0771371e0c91a57343892e991254c4bf0b Mon Sep 17 00:00:00 2001 From: thing1 Date: Mon, 21 Oct 2024 08:37:33 +0100 Subject: did some electronics --- electronics/asm/mem.ba~ | 28 ---------------------------- 1 file changed, 28 deletions(-) delete mode 100644 electronics/asm/mem.ba~ (limited to 'electronics/asm/mem.ba~') diff --git a/electronics/asm/mem.ba~ b/electronics/asm/mem.ba~ deleted file mode 100644 index 62c8d54..0000000 --- a/electronics/asm/mem.ba~ +++ /dev/null @@ -1,28 +0,0 @@ -start: -init: - clrf PORTA ; make sure port A output latches are low - clrf PORTB ; make sure port B output latches are low - bsf STATUS,RP0 ; select memory bank 1 - movlw b'11111111' ; set port A data direction to inputs - movwf TRISA - movlw b'00000000' ; set port B data direction to outputs - movwf TRISB - bcf STATUS,RP0 ; select memory bank 0 - goto main -;; for this program use the 2k 8 bit mem chip, with WE on B2, OE on B3, and the memorys 3 least -;; sig bits to B4-B6 (inclusive), all other pins on the mem chip need to be held low, and an led -;; needs to be on B1 -;; when B1 goes high move the 3 pins from the microcontroler to leds and see the value -main: - movlw b'01111000' - movwf PORTB ; make we high, oe low, and 3 pins high - call wait1000ms - - movlw b'00000110' - movwf PORTB ; make we low, oe high, and 3 pins low - -noend: - goto noend - - END ; ends the program - -- cgit v1.2.3