diff options
author | thing1 <thing1@seacrossedlovers.xyz> | 2024-10-21 08:37:33 +0100 |
---|---|---|
committer | thing1 <thing1@seacrossedlovers.xyz> | 2024-10-21 08:37:33 +0100 |
commit | b8c4af0771371e0c91a57343892e991254c4bf0b (patch) | |
tree | a02db9fed691521822478f3e0f76b710ca535cb7 /electronics/asm/mem.ba~ | |
parent | faef2d81c224b715c5e429d04c59ba50fb772d9e (diff) |
did some electronics
Diffstat (limited to 'electronics/asm/mem.ba~')
-rw-r--r-- | electronics/asm/mem.ba~ | 28 |
1 files changed, 0 insertions, 28 deletions
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
-
|