/* Imported from Wayback Machine
Original URL : https://www.retrobrewcomputers.org/doku.php?id=builderpages:speed3ple:ecb-4pio-r04 Snapshot date: 2025-12-16 Generator : wayback-archiver
*/
ECB 4PIO r04
Update 16.Apr.2021: I checked the errata again and did some more fix + tests. I still have some weird outputs on a few ports. (more details below)
To enable the 4PIO board in RomWBW: I used the following settings in the .\RomWBW-v3.0.1\Source\HBIOS\Config\SBC_std.asm to compile the ROM for the SBC CPU board:
PIO_4P .SET TRUE ; PIO: ENABLE PARALLEL PORT DRIVER FOR ECB 4P BOARD
PIO4BASE .SET $90 ; PIO: PIO REGISTERS BASE ADR FOR ECB 4P BOARD
Se the boards excellent documentation home page for details, as I could have made some mistakes here.
Also: There is a newer version of this board in development by user b1ackmai1er!
Note errata here : [[boards:ecb:4pio:r04]]
| Testing the board! |
|---|
I'm still having some trouble with some of the outputs?
Turn all LED OFF in MBASIC : OUT 144,255
255 FFh 11111111 = All LEDs OFF
Turn all LEDs ON in MBASIC: OUT 144,0
0 00h 00000000 = All LEDs are ON
“OUT 144,191” BFh 10111111 - One LED is on (This is expected and normal): 01000000 (1=LED ON, =LED OFF)
“OUT 144,223” DFh 11011111 ! None LED is lit? Something is wrong here?, We should expect this: 00100000 (1=LED ON, =LED OFF)
“OUT 144,239” EFh 11101111 ! 2 Leds are on!? 001100000 (1=ON, =OFF) , We should expect this: 00010000 (1=LED ON, =LED OFF)
“OUT 144,247” F7h 11110111 - One LED is on (This is expected and normal): 00001000 (1=LED ON, = LED OFF)
I wrote a simple MBASIC code to go through all output bits but i can't seem to get the formatting of this page to show it correctly.







