Hello I am using a PIC 18F45K20 to send address information to an external SRAM AS6C4008 (I have attached both datasheets below). I thought I was writing data correctly to my SRAM device because I was able to display any 8 bit .bmp file to a screen with vga output. I usually would write data in 64 byte blocks ie an 8x8 byte map. Now I have implemented a transparent color that when is detected I skip drawing to that memory location. This would allow me to draw an 8x8 pixel object but not mess with the background I have in SRAM. Another words I was writing memory say 40 times instead of 64 times because of the transparent byte detection.
So now to the real information. My instructions are executing at 16MIPS or 16MHz because I have a 64 MHz clock and each instruction takes 4 cycles. I am writing to memory in this fashion...
The address is set to PORTD and PORTB previously before any of the above instructions are run. I have been stuck on this problem for awhile and I'm not too sure what to do. I am following the write cycle 1 method in the SRAM datasheet.
So now to the real information. My instructions are executing at 16MIPS or 16MHz because I have a 64 MHz clock and each instruction takes 4 cycles. I am writing to memory in this fashion...
Rich (BB code):
bsf PORTE,WE
bsf PORTE,CE
nop
bcf PORTE,CE
bcf PORTE,WE
nop
bsf PORTE,OE
nop
nop
movf TABLAT,W
movwf PORTC
nop
bsf PORTE,WE
bsf PORTE,CE
nop
nop
bcf PORTE,OE
Attachments
-
2.7 MB Views: 79
-
3.7 MB Views: 52
-
43.8 KB Views: 51
Last edited: