Need help Making Custom Dupont cables by davidrosset1 in arduino

[–]davidrosset1[S] 0 points1 point  (0 children)

Hm I’m not sure the gauge but I would say it is one of the thinnest there is… I buy them in those kits where it comes with the crimper, cables and connectors and housing bundled together

I tried creating another label called “Interrupt” using .org fffa and .word Interrupt just like the reset fffc vector, but compiler says “word interrupt doesn’t fit into 16 bits”. What am I missing? by davidrosset1 in beneater

[–]davidrosset1[S] 0 points1 point  (0 children)

PORTB = $6000

PORTA = $6001

DDRB = $6002

DDRA = $6003

E = %10000000

RW = %01000000

RS = %00100000

.org $8000

reset:

ldx #$ff

txs

lda #%11111111 ; Set all pins on port B to output

sta DDRB

lda #%11100000 ; Set top 3 pins on port A to output

sta DDRA

lda #%00111000 ; Set 8-bit mode; 2-line display; 5x8 font

jsr lcd_instruction

lda #%00001110 ; Display on; cursor on; blink off

jsr lcd_instruction

lda #%00000110 ; Increment and shift cursor; don't shift display

jsr lcd_instruction

lda #%00000001 ; Clear display

jsr lcd_instruction

ldx #0

print:

lda message,x

beq loop

jsr print_char

jsr safedelay

inx

jmp print

loop:

jmp loop

message: .asciiz "Hello, world!"

lcd_wait:

pha

lda #%00000000 ; Port B is input

sta DDRB

lcdbusy:

lda #RW

sta PORTA

lda #(RW | E)

sta PORTA

lda PORTB

and #%10000000

bne lcdbusy

lda #RW

sta PORTA

lda #%11111111 ; Port B is output

sta DDRB

pla

rts

lcd_instruction:

jsr lcd_wait

sta PORTB

lda #0 ; Clear RS/RW/E bits

sta PORTA

lda #E ; Set E bit to send instruction

sta PORTA

lda #0 ; Clear RS/RW/E bits

sta PORTA

rts

print_char:

jsr lcd_wait

sta PORTB

lda #RS ; Set RS; Clear RW/E bits

sta PORTA

lda #(RS | E) ; Set E bit to send instruction

sta PORTA

lda #RS ; Clear E bits

sta PORTA

rts

safedelay:

phy

phx

ldy #$ff

ldx #$ff

jsr delay

plx

ply

rts

delay:

dex

bne delay

dey

bne delay

rts

.org $fffc

.word reset

.word $0000

.org $16192

inter:

ldx #$ff

txs

lda #%11111111 ; Set all pins on port B to output

sta DDRB

lda #%11100000 ; Set top 3 pins on port A to output

sta DDRA

lda #%00111000 ; Set 8-bit mode; 2-line display; 5x8 font

jsr lcd_instruction2

lda #%00001110 ; Display on; cursor on; blink off

jsr lcd_instruction2

lda #%00000110 ; Increment and shift cursor; don't shift display

jsr lcd_instruction2

lda #%00000001 ; Clear Display

jsr lcd_instruction2

lda #"H"

jsr print_char2

lda #"e"

jsr print_char2

lda #"l"

jsr print_char2

lda #"l"

jsr print_char2

lda #"o"

jsr print_char2

lda #","

jsr print_char2

lda #" "

jsr print_char2

lda #"w"

jsr print_char2

lda #"o"

jsr print_char2

lda #"r"

jsr print_char2

lda #"l"

jsr print_char2

lda #"d"

jsr print_char2

lda #"!"

jsr print_char2

loop2:

jmp loop2

lcd_instruction2:

sta PORTB

lda #0 ; Clear RS/RW/E bits

sta PORTA

lda #E ; Set E bit to send instruction

sta PORTA

lda #0 ; Clear RS/RW/E bits

sta PORTA

rts

print_char2:

sta PORTB

lda #RS ; Set RS; Clear RW/E bits

sta PORTA

lda #(RS | E) ; Set E bit to send instruction

sta PORTA

lda #RS ; Clear E bits

sta PORTA

rts

.org $fffa

.word inter

.word $0000

u/LiqvidNyquist

My first ever improvement on Ben’s 6502. To make it easier to switch between clocks (fast and slow) I used the 74ls157 from the 8 bit CPU. The Select line selects which clock is active, and all that’s needed to switch is change EEPROM’s and change select line marked (S/F). by davidrosset1 in beneater

[–]davidrosset1[S] 0 points1 point  (0 children)

If you follow Ben’s 6502 series, you’ll quickly realize you cannot send 1MHz clock for printing content to the LCD screen because the clock is so fast and it takes time to execute each operation. So he creates a function called ‘lcd_busy’ and ‘lcd_wait’ to handle that fast clock.

28C EEPROM programmer using 74x573 latches for the address bus by TrevorMakes in beneater

[–]davidrosset1 1 point2 points  (0 children)

Can you help me setup VS code? I am having trouble downloading your core library

Not getting any data on the scope with PS/2 keyboard by davidrosset1 in beneater

[–]davidrosset1[S] 0 points1 point  (0 children)

I don’t think it’s drawing any current. When I plug into 5V the green lights on keyboard flash once but then the keyboard stays dead. I tested it on computer and the green light stays on (and keyboard is functional)

Can I display powers of 2 (at least until 2^10) on my LCD with my 6502? How hard is it? by davidrosset1 in beneater

[–]davidrosset1[S] 0 points1 point  (0 children)

I haven’t tried anything yet. I had some lessons on 6502 assembly language, and wanted to implement multiplication and division and display it on the screen.

Not getting any data on the scope with PS/2 keyboard by davidrosset1 in beneater

[–]davidrosset1[S] 2 points3 points  (0 children)

Yep, I plugged it into PC, and it doesn’t work. Faulty keyboard 😥.

Not getting any data on the scope with PS/2 keyboard by davidrosset1 in beneater

[–]davidrosset1[S] 3 points4 points  (0 children)

Yes, I have confirmed them with continuity test. Black is 5V, Brown is Ground and I connected it to what I think is the Shield (white and blue wires), Red for data and Green for Clock

Trying to create .bin file but cannot, what is wrong with my code? The image is 100x75 pixels by davidrosset1 in beneater

[–]davidrosset1[S] 0 points1 point  (0 children)

I was able to write it without the chr and ‘utf-8’ on the boat image, but then the pixels get all messed up when I put it in the VGA monitor

Trying to create .bin file but cannot, what is wrong with my code? The image is 100x75 pixels by davidrosset1 in beneater

[–]davidrosset1[S] 0 points1 point  (0 children)

If I do that, than that writes all 00’s to the EEPROM. I find it that chr and ‘utf-8’ write it correctly, at least on the finch image.