| ??? 01/15/08 05:26 Read: times |
#149458 - OK II Responding to: ???'s previous message |
So you are writing to a 8 bit port.
Let us assume... Okay thanks. I have my circuit ready for testing. I've read more about the MAX6969 and studied your program outline. By using "call" commands, are they assembler routines? What do the "&" signify? Do I send literal decimal numbers to the port? is this basic52? CLK = 1,LSB DOUT = 2 LATCH = 4 OE = 8 DIN = ignored Write to port &HF to init port to 1's Enable Chip, Write to port &H7 call writeByte(HighByte) call writeByte(LowByte) Latch, Write to port &H3 disable Chip, Write to port &HF sub writeByte(Byte) For X = 0 to 7 if Byte and &H80 Temp = &H2 'send a 1 else Temp = &H0 'send a 0 Write to port Temp AND &H5 'send bit to port, clk and latch high Byte = Byte * 8 'Shift Byte Left Write to port Temp AND &H4 'Clock Low 'May need a delay here Write to port Temp AND &H5 'Clock High (and Data transfers) Next X end sub Mark |
| Topic | Author | Date |
| Another bit banged SPI for 8052 | 01/01/70 00:00 | |
| Start | 01/01/70 00:00 | |
| Tried? | 01/01/70 00:00 | |
| schematics? | 01/01/70 00:00 | |
| totally | 01/01/70 00:00 | |
| Antona 8052 board schematics | 01/01/70 00:00 | |
| OK Begin | 01/01/70 00:00 | |
| Begin here | 01/01/70 00:00 | |
| OK | 01/01/70 00:00 | |
| OK II | 01/01/70 00:00 | |
| Basic? | 01/01/70 00:00 | |
| BASIC 52 | 01/01/70 00:00 | |
Excuse my VB6 accent then | 01/01/70 00:00 | |
| "industry standard" SPI | 01/01/70 00:00 | |
| ok '51 "industry standard" SPI | 01/01/70 00:00 | |
| SPI Standardization is a joke... | 01/01/70 00:00 |



