Tuesday, July 12, 2022

The brightness of the LED more difficult.

I spent the last week fixing several problems to make the CH376S work because the datasheet do not help so much, or maybe I lost the part that explained this.

The first thing I did and the module behavior changed was to tie the RST to another peripherals RST, the datasheet is not clear about the RST somewhere I read that the RST is an output, on www every schema I found RST was left disconnected, but for me the 8bitstack code (z80 playground) only started to recognize the CH376S when I joined the RST of the CH376S together with the RST of other peripherals, but sometimes it was not detected, 

I put a delay between reset and configuration and it did not solved the problem, 

I was suspicious that the parallel configuration method should only work with the chip running at 5Volt because the instable behavior did not made sense and the schematic for parallel config was with 5volts, só I opened the pin number 9 of the chip and put a 01nF capacitor to ground and take off lm1117 and I joined input voltage with output voltage together.

VOILÁ !!!... it worked now everytime I reset the module is detected buy the software, I could take off all delays and tricks that I put in code to try detect it and it continue to work. The led of the module are shining now!!!


#Z80
#CPM
#ASSEMBLER
#CH376S
#8255
#16C550
#I2C

Wednesday, July 6, 2022



 After a long long time I really decided to implement my z80 computer, above it is the picture of the system board I have been working on it.

This project is a Z80 based computer designed to run as a MSX. It is a work-in-progress, and the current specs are:

  • 32K of ROM (EEPROM for ease of reprogramming)
  • 64K of RAM
  • A very basic machine code monitor and disassembler in ROM
  • BBC Basic for Z80
  • Serial I/O via an TL16C550CN UART
  • Serial I2C LCD1602 only for fun

The intention is to work towards a fully functioning MSX1 clone , with a TMS9938 video chip and AY-8912 sound.

I found a work from Dean Belfield that has the same proposal I was thinking to do, an MSX homemade, so I am continuing what he has been started.

The monitor program that helps in develoment of interfaces to z80 was the tool I am using for this job, I recently implemented the following:

1 - A help command to show in the terminal the options system has.

2 - Uart with TL16C550CN the chip I already have in my lab.

3 - MSX logic to access rom and ram by slot mecanism.

4 -  An I2C driver for the z80.

5 - The code to deal with LCD1602

The I2C and LCD I did just for fun, because MSX does not needs it, although I do not decided if the access to system files will be by sdcard(I2C) or by CH376B, sdcard give me advantage of knowledge because I aready did a system using  it, but it is a hard work, on the other hand CH376B is só easy to use but I had never used it, anyway this is the next step, see you!