RGB to HDMI using a Pi Zero and a small CPLD

discuss both original and modern hardware for the bbc micro/electron
ingmar
Posts: 3
Joined: Mon Apr 06, 2020 4:18 am
Contact:

Re: RGB to HDMI using a Pi Zero and a small CPLD

Post by ingmar » Mon Apr 06, 2020 9:12 am

G'day from Australia.
I've just built a few of the latest version (6/8 bit) boards for myself and a couple of Canberra retro mates and the results out of the box on my BBC model B were outstanding. Thanks for all the effort that has gone into this project.
I've waded through the last 33 pages of posts but I've somehow missed the one snippet that may tell me how to connect a RGBI source (TTL level) to the board. Is it a case of specifying the RGBI colour palette in the config file and connecting the I(ntensity) line to one of the rgb x1 or x2 lines?
Cheers,
Ingmar

User avatar
hoglet
Posts: 9091
Joined: Sat Oct 13, 2012 7:21 pm
Location: Bristol
Contact:

Re: RGB to HDMI using a Pi Zero and a small CPLD

Post by hoglet » Mon Apr 06, 2020 10:56 am

Hello Ingmar,
ingmar wrote:
Mon Apr 06, 2020 9:12 am
I've just built a few of the latest version (6/8 bit) boards for myself and a couple of Canberra retro mates and the results out of the box on my BBC model B were outstanding. Thanks for all the effort that has gone into this project.
You are most welcome - thanks for the positive feedback.
ingmar wrote:
Mon Apr 06, 2020 9:12 am
I've waded through the last 33 pages of posts but I've somehow missed the one snippet that may tell me how to connect a RGBI source (TTL level) to the board. Is it a case of specifying the RGBI colour palette in the config file and connecting the I(ntensity) line to one of the rgb x1 or x2 lines?
In terms of connections for non BBC machines, you are right this isn't well documented yet.

The I(ntensity) signal needs to be connected to the of pin P2 which is labelled with a lower case g, and the RGB signals should connect to pins labelled R, G and B respectively. The additional signals x1 and x2 are not used in RGBI mode.

You then need to select the RGBI palette. I would suggest doing this in the UI, then saving the configuration.

Depending on the source, you may need to fiddle with other setting before you get a stable picture.

What actually is the source? There may be a suitable profile already.

Dave

ingmar
Posts: 3
Joined: Mon Apr 06, 2020 4:18 am
Contact:

Re: RGB to HDMI using a Pi Zero and a small CPLD

Post by ingmar » Mon Apr 06, 2020 11:29 am

Hey Dave, the source (first off) will be a an Australian Microbee. This, if you are not familiar with them, is a Z80 based and Australian made system which was sold in large numbers to Australian and Swedish schools. The "premium" iteration runs at 3.375MHz, has a pixel clock of 13.5MHz and the video chip is a 6545. Interface was designed to essentially be CGA compatible. Microbee systems used to sell the Kaga RGB monitors. Timing is PAL compatible as it by default also has a monochrome composite video out as well.

I'm happy to wade through the other docs, coincidentally my current work-from-home task for work is to re-learn VHDL :-)

Cheers,
Ingmar

User avatar
hoglet
Posts: 9091
Joined: Sat Oct 13, 2012 7:21 pm
Location: Bristol
Contact:

Re: RGB to HDMI using a Pi Zero and a small CPLD

Post by hoglet » Mon Apr 06, 2020 11:35 am

ingmar wrote:
Mon Apr 06, 2020 11:29 am
Hey Dave, the source (first off) will be a an Australian Microbee. This, if you are not familiar with them, is a Z80 based and Australian made system which was sold in large numbers to Australian and Swedish schools. The "premium" iteration runs at 3.375MHz, has a pixel clock of 13.5MHz and the video chip is a 6545. Interface was designed to essentially be CGA compatible. Microbee systems used to sell the Kaga RGB monitors. Timing is PAL compatible as it by default also has a monochrome composite video out as well.

I'm happy to wade through the other docs, coincidentally my current work-from-home task for work is to re-learn VHDL :-)
I don't think there's a existing profile that's a good match to that.

Ian did some work on a profile creation guide:
https://github.com/hoglet67/RGBtoHDMI/w ... ew-Profile

I would suggest starting with that.

Dave

ingmar
Posts: 3
Joined: Mon Apr 06, 2020 4:18 am
Contact:

Re: RGB to HDMI using a Pi Zero and a small CPLD

Post by ingmar » Mon Apr 06, 2020 12:13 pm

hoglet wrote:
Mon Apr 06, 2020 11:35 am

I don't think there's a existing profile that's a good match to that.

Ian did some work on a profile creation guide:
https://github.com/hoglet67/RGBtoHDMI/w ... ew-Profile
Will do, thanks again.

Is it worth running off a couple of the latest analogue boards or are they likely to change a lot?

User avatar
IanB
Posts: 538
Joined: Sun Sep 04, 2011 8:28 pm
Location: South Wales
Contact:

Re: RGB to HDMI using a Pi Zero and a small CPLD

Post by IanB » Tue Apr 07, 2020 5:10 pm

ingmar wrote:
Mon Apr 06, 2020 12:13 pm
Is it worth running off a couple of the latest analogue boards or are they likely to change a lot?
The issue 3 analog board is pretty stable now and not likely to change much if at all. Using the 6 way IDC header on the end of the PCB works really well.

In addition to the 3 bit TTL buffer board which has the same 6 way IDC as the analog board I've designed 6 bit, 8 bit and PC buffer boards which also have end mounted IDC connectors (9 way D for the PC board) although these new boards are untested so far.

I've also added a full size case drilling template layout to the main 6 bit V3 folder

BTW there is now an RC9 release with the latest fixes and screengrab updates.
ingmar wrote:
Mon Apr 06, 2020 11:29 am
I've waded through the last 33 pages of posts but I've somehow missed the one snippet that may tell me how to connect a RGBI source (TTL level) to the board.
the source (first off) will be a an Australian Microbee.
The first 9 pins of the 10 way IDC header (i.e. excluding the +5v pin and the X1 / X2 8 bit extensions) are designed to connect via a ribbon cable directly to a 9 way "D" type IDC connector which is the CGA/EGA PC standard so the wiring is the same as the CGA standard and as mentioned by hoglet, intensity is the 'g' signal.

If you get a working profile, please post it and I'll add it to the default set

User avatar
BeebMaster
Posts: 3214
Joined: Sun Aug 02, 2009 5:59 pm
Location: Lost in the BeebVault!
Contact:

Re: RGB to HDMI using a Pi Zero and a small CPLD

Post by BeebMaster » Wed Apr 08, 2020 1:59 pm

I added the 4 wires to allow firmware updating, and I'm now running v66. I didn't have to do anything else except choose it through the Info menu.
IMG_6399.JPG
I've narrowed down the rogue 8GB Kingston card boot problem.
With scaling set to Integer it boots fine.
With scaling set to Fill or Full 4:3, it needs a reset before anything happens.

This also explains why the kernel update initially worked then "suddenly" stopped working - this coincided with a change from the HD TV which looks better in Integer scaling, to the Dell 4:3 monitor which looks better with 4:3.
Image

User avatar
BeebMaster
Posts: 3214
Joined: Sun Aug 02, 2009 5:59 pm
Location: Lost in the BeebVault!
Contact:

Re: RGB to HDMI using a Pi Zero and a small CPLD

Post by BeebMaster » Wed Apr 08, 2020 2:47 pm

If it helps this is the debug output with Fill 4:3 scaling (no picture):

Code: Select all

sudo cat /dev/serial0 | ts "%a,%d %b %Y.%.T"
TGB to HDMI booted:42:04.104494 ***********RET***********
Wed,08 Apr 2020.14:42:04.107962 8 bit board NOT detected
Wed,08 Apr 2020.14:42:04.110934 Using PLLA as the sampling clock
Wed,08 Apr 2020.14:42:04.114005 PLLA: 2400.000000 ANA1 = 00144000
Wed,08 Apr 2020.14:42:04.121153 PLLA: PDIV=1 NDIV=62 CTRL=0002103e FRAC=524288 DSI0=256 CORE=2 PER=256 CCP2=256
Wed,08 Apr 2020.14:42:04.124197 PLLB: 2000.000024 ANA1 = 00144000
Wed,08 Apr 2020.14:42:04.131017 PLLB: PDIV=1 NDIV=52 CTRL=00021034 FRAC=87382 ARM=2 SP0=256 SP1=256 SP2=256
Wed,08 Apr 2020.14:42:04.134175 PLLC: 2400.000000, ANA1 = 00144000
Wed,08 Apr 2020.14:42:04.141398 PLLC: PDIV=1 NDIV=62 CTRL=0002103e FRAC=524288 CORE2=256 CORE1=256 PER=2 CORE0=2
Wed,08 Apr 2020.14:42:04.144425 PLLD: 2000.000024 ANA1 = 00144000
Wed,08 Apr 2020.14:42:04.151326 PLLD: PDIV=1 NDIV=52 CTRL=00021034 FRAC=87382 DSI0=256 CORE=4 PER=4 DSI1=256
Wed,08 Apr 2020.14:42:04.154272 PLLH: 864.000000 ANA1 = 00144000
Wed,08 Apr 2020.14:42:04.161097 PLLH: PDIV=1 NDIV=45 CTRL=0002102d FRAC=0 AUX=4 RCAL=256 PIX=256 STS=527597
Wed,08 Apr 2020.14:42:04.164126 PLLA: 2400.000000 ANA1 = 00144000
Wed,08 Apr 2020.14:42:04.171295 PLLA: PDIV=1 NDIV=62 CTRL=0002103e FRAC=524288 DSI0=256 CORE=256 PER=4 CCP2=256
Wed,08 Apr 2020.14:42:04.174212 CPU speed detected as: 1000 Mhz
Wed,08 Apr 2020.14:42:04.184637 Keycount = 0
Wed,08 Apr 2020.14:42:04.184818 CPLD  Design: 3BIT_RGB
Wed,08 Apr 2020.14:42:04.184935 CPLD Version: 6.6
Wed,08 Apr 2020.14:42:04.193031 EMMC: BCM2708 controller power-cycled
Wed,08 Apr 2020.14:42:04.812384 Loading file /Palettes/Atom_MKII.bin
Wed,08 Apr 2020.14:42:04.819114 Loading file /Palettes/Atom_MKII_Full.bin
Wed,08 Apr 2020.14:42:04.826040 Loading file /Palettes/Atom_MKII_Plus.bin
Wed,08 Apr 2020.14:42:04.833055 Loading file /Palettes/Colour_Genie_N25.bin
Wed,08 Apr 2020.14:42:04.840602 Loading file /Palettes/Colour_Genie_S24.bin
Wed,08 Apr 2020.14:42:04.848181 Loading file /Palettes/Colour_Genie_S25.bin
Wed,08 Apr 2020.14:42:04.855270 Loading file /Palettes/Dragon-CoCo.bin
Wed,08 Apr 2020.14:42:04.861769 Loading file /Palettes/Dragon-CoCo_Emu.bin
Wed,08 Apr 2020.14:42:04.868227 Loading file /Palettes/Dragon-CoCo_Full.bin
Wed,08 Apr 2020.14:42:04.874258 Loading file /Palettes/MDA-Hercules.bin
Wed,08 Apr 2020.14:42:04.880575 Loading file /Palettes/Mono_(2_level).bin
Wed,08 Apr 2020.14:42:04.887428 Loading file /Palettes/Mono_(3_level).bin
Wed,08 Apr 2020.14:42:04.894412 Loading file /Palettes/Mono_(4_level).bin
Wed,08 Apr 2020.14:42:04.901367 Loading file /Palettes/Mono_(6_level).bin
Wed,08 Apr 2020.14:42:04.907634 Loading file /Palettes/RGB.bin
Wed,08 Apr 2020.14:42:04.912566 Loading file /Palettes/RGBI.bin
Wed,08 Apr 2020.14:42:04.917795 Loading file /Palettes/RGBI_(CGA).bin
Wed,08 Apr 2020.14:42:04.923381 Loading file /Palettes/RGBI_(Spectrum).bin
Wed,08 Apr 2020.14:42:04.929205 Loading file /Palettes/RGBrgb_(Amstrad).bin
Wed,08 Apr 2020.14:42:04.935079 Loading file /Palettes/RGBrgb_(Spectrum).bin
Wed,08 Apr 2020.14:42:04.940520 Loading file /Palettes/RrGgBb_(EGA).bin
Wed,08 Apr 2020.14:42:04.947120 Loading file /Palettes/Spectrum_48K_9Col.bin
Wed,08 Apr 2020.14:42:04.956563 FOUND RESOLUTION: 1024x600@50Hz
Wed,08 Apr 2020.14:42:04.959518 FOUND RESOLUTION: 1024x600@60Hz
Wed,08 Apr 2020.14:42:04.962422 FOUND RESOLUTION: 1024x768@50Hz
Wed,08 Apr 2020.14:42:04.965225 FOUND RESOLUTION: 1024x768@60Hz
Wed,08 Apr 2020.14:42:04.968202 FOUND RESOLUTION: 1280x1024@50Hz
Wed,08 Apr 2020.14:42:04.980318 FOUND RESOLUTION: 1280x1024@60Hz
Wed,08 Apr 2020.14:42:04.980577 FOUND RESOLUTION: 1280x720@50Hz
Wed,08 Apr 2020.14:42:04.980733 FOUND RESOLUTION: 1280x720@60Hz
Wed,08 Apr 2020.14:42:04.980866 FOUND RESOLUTION: 1280x800@50Hz
Wed,08 Apr 2020.14:42:04.982809 FOUND RESOLUTION: 1280x800@60Hz
Wed,08 Apr 2020.14:42:04.985678 FOUND RESOLUTION: 1368x768@50Hz
Wed,08 Apr 2020.14:42:04.988553 FOUND RESOLUTION: 1368x768@60Hz
Wed,08 Apr 2020.14:42:04.991563 FOUND RESOLUTION: 1600x1200@50Hz
Wed,08 Apr 2020.14:42:04.994538 FOUND RESOLUTION: 1600x1200@60Hz
Wed,08 Apr 2020.14:42:04.997523 FOUND RESOLUTION: 1920x1080@50Hz
Wed,08 Apr 2020.14:42:05.000532 FOUND RESOLUTION: 1920x1080@60Hz
Wed,08 Apr 2020.14:42:05.003499 FOUND RESOLUTION: 1920x1200@50Hz
Wed,08 Apr 2020.14:42:05.006507 FOUND RESOLUTION: 1920x1200@60Hz
Wed,08 Apr 2020.14:42:05.009281 FOUND RESOLUTION: 640x480@50Hz
Wed,08 Apr 2020.14:42:05.012076 FOUND RESOLUTION: 640x480@60Hz
Wed,08 Apr 2020.14:42:05.014893 FOUND RESOLUTION: 720x576@50Hz
Wed,08 Apr 2020.14:42:05.017714 FOUND RESOLUTION: 800x600@50Hz
Wed,08 Apr 2020.14:42:05.020511 FOUND RESOLUTION: 800x600@60Hz
Wed,08 Apr 2020.14:42:05.023333 FOUND RESOLUTION: Default@60Hz
Wed,08 Apr 2020.14:42:05.025986 Loading file /config.txt
Wed,08 Apr 2020.14:42:05.030382 Read resolution: 1280x800@60Hz
Wed,08 Apr 2020.14:42:05.033317 Match resolution: 9 1280x800@60Hz
Wed,08 Apr 2020.14:42:05.034855 Read scaling: 3
Wed,08 Apr 2020.14:42:05.044341 Loading file: /Profiles/3BIT_RGB/Default.txt
Wed,08 Apr 2020.14:42:05.068224 FOUND PROFILE: Atom
Wed,08 Apr 2020.14:42:05.070463 FOUND PROFILE: BBC_Micro
Wed,08 Apr 2020.14:42:05.073266 FOUND PROFILE: BBC_Micro_24MHz
Wed,08 Apr 2020.14:42:05.076062 FOUND PROFILE: Camputers_Lynx
Wed,08 Apr 2020.14:42:05.078857 FOUND SUB-FOLDER: Colour Test
Wed,08 Apr 2020.14:42:05.081405 FOUND PROFILE: Colour_Genie
Wed,08 Apr 2020.14:42:05.083936 FOUND PROFILE: Communicator
Wed,08 Apr 2020.14:42:05.088366 FOUND PROFILE: Communicator_Mode7
Wed,08 Apr 2020.14:42:05.088914 FOUND PROFILE: Custom
Wed,08 Apr 2020.14:42:05.091194 FOUND PROFILE: Electron
Wed,08 Apr 2020.14:42:05.092973 FOUND PROFILE: Oric
Wed,08 Apr 2020.14:42:05.094626 FOUND PROFILE: QL
Wed,08 Apr 2020.14:42:05.097002 FOUND PROFILE: Station129
Wed,08 Apr 2020.14:42:05.099198 FOUND PROFILE: Teletext
Wed,08 Apr 2020.14:42:05.101041 FOUND PROFILE: ZX80
Wed,08 Apr 2020.14:42:05.104614 Loading file /profile_3BIT_RGB.txt
Wed,08 Apr 2020.14:42:05.107697 Setting profile to 12
Wed,08 Apr 2020.14:42:05.114970 Loading file: /Saved_Profiles/3BIT_RGB/Station129.txt
Wed,08 Apr 2020.14:42:05.120494 Setting subprofile to 0
Wed,08 Apr 2020.14:42:05.122409 Profile = Station129
Wed,08 Apr 2020.14:42:05.126825 Analyze Csync: polarity unchanged (non-inverted)
Wed,08 Apr 2020.14:42:05.203746 Detected polarity state at startup = Comp (Separate H & V CPLD)
Wed,08 Apr 2020.14:42:05.224299 Keycount = 0
Wed,08 Apr 2020.14:42:05.228914 -----------------------LOOP------------------------
Wed,08 Apr 2020.14:42:05.233338 Analyze Csync: polarity unchanged (non-inverted)
Wed,08 Apr 2020.14:42:05.238352 Detected polarity state = 4, Comp (Separate H & V CPLD)
Wed,08 Apr 2020.14:42:05.246310         clkinfo.clock = 12000000 Hz
Wed,08 Apr 2020.14:42:05.248869      clkinfo.line_len = 768
Wed,08 Apr 2020.14:42:05.251940     clkinfo.clock_ppm = 5000 ppm
Wed,08 Apr 2020.14:42:05.273964     Nominal 100 lines = 6400000 ns
Wed,08 Apr 2020.14:42:05.277111      Actual 100 lines = 6405293 ns
Wed,08 Apr 2020.14:42:05.279979           Clock error = 827 PPM
Wed,08 Apr 2020.14:42:05.283313  Error adjusted clock = 11990083 Hz
Wed,08 Apr 2020.14:42:05.288668  Target PLL frequency = 2302096080 Hz, prediv = 1, PER = 4
Wed,08 Apr 2020.14:42:05.291940  Actual PLL frequency = 2302096080 Hz
Wed,08 Apr 2020.14:42:05.294289         GPCLK Divisor = 6
Wed,08 Apr 2020.14:42:05.366663       Lines per frame = 625, (625.003)
Wed,08 Apr 2020.14:42:05.372617 Actual frame time = 40032990 ns (interlaced), line time = 64052 ns
Wed,08 Apr 2020.14:42:05.378281 Window: H = 63732 to 64372, V = 19916413 to 20116577, S = Comp
Wed,08 Apr 2020.14:42:05.405456 Width or Height differ from last FB: Setting dummy 64x64 framebuffer
Wed,08 Apr 2020.14:42:05.407973 Overscan L=0, R=0, T=0, B=0
Wed,08 Apr 2020.14:42:05.435663 Initialised Framebuffer
Wed,08 Apr 2020.14:42:05.437121 Size: 1296x288 
Wed,08 Apr 2020.14:42:05.438699 Pitch: 656 bytes
Wed,08 Apr 2020.14:42:05.441465 Framebuffer address: DE000000
Wed,08 Apr 2020.14:42:05.474000 RAM benchmark: Main memory = 801230 ns, Screen memory = 26348573 ns
and Integer (boots normally):

Code: Select all

sudo cat /dev/serial0 | ts "%a,%d %b %Y.%.T"
RGB to HDMI booted:46:27.787995 ***************REET***************
Wed,08 Apr 2020.14:46:27.791470 8 bit board NOT detected
Wed,08 Apr 2020.14:46:27.794486 Using PLLA as the sampling clock
Wed,08 Apr 2020.14:46:27.797562 PLLA: 2400.000000 ANA1 = 00144000
Wed,08 Apr 2020.14:46:27.804683 PLLA: PDIV=1 NDIV=62 CTRL=0002103e FRAC=524288 DSI0=256 CORE=2 PER=256 CCP2=256
Wed,08 Apr 2020.14:46:27.807734 PLLB: 2000.000024 ANA1 = 00144000
Wed,08 Apr 2020.14:46:27.814503 PLLB: PDIV=1 NDIV=52 CTRL=00021034 FRAC=87382 ARM=2 SP0=256 SP1=256 SP2=256
Wed,08 Apr 2020.14:46:27.817646 PLLC: 2400.000000, ANA1 = 00144000
Wed,08 Apr 2020.14:46:27.824802 PLLC: PDIV=1 NDIV=62 CTRL=0002103e FRAC=524288 CORE2=256 CORE1=256 PER=2 CORE0=2
Wed,08 Apr 2020.14:46:27.825030 
Wed,08 Apr 2020.14:46:27.827873 PLLD: 2000.000024 ANA1 = 00144000
Wed,08 Apr 2020.14:46:27.828090 
Wed,08 Apr 2020.14:46:27.834735 PLLD: PDIV=1 NDIV=52 CTRL=00021034 FRAC=87382 DSI0=256 CORE=4 PER=4 DSI1=256
Wed,08 Apr 2020.14:46:27.834948 
Wed,08 Apr 2020.14:46:27.837703 PLLH: 864.000000 ANA1 = 00144000
Wed,08 Apr 2020.14:46:27.837903 
Wed,08 Apr 2020.14:46:27.844478 TRL=0002102d FRAC=0 AUX=4 RCAL=256 PIX=256 STS=527437
Wed,08 Apr 2020.14:46:27.844703 
Wed,08 Apr 2020.14:46:27.847518 PLLA: 2400.000000 ANA1 = 00144000
Wed,08 Apr 2020.14:46:27.847699 
Wed,08 Apr 2020.14:46:27.854729 PLLA: PDIV=1 NDIV=62 CTRL=0002103e FRAC=524288 DSI0=256 CORE=256 PER=4 CCP2=256
Wed,08 Apr 2020.14:46:27.855043 
Wed,08 Apr 2020.14:46:27.857585 CPU speed detected as: 1000 Mhz
Wed,08 Apr 2020.14:46:27.858036 
Wed,08 Apr 2020.14:46:27.858854 Keycount = 0
Wed,08 Apr 2020.14:46:27.859419 
Wed,08 Apr 2020.14:46:27.860936 CPLD  Design: 3BIT_RGB
Wed,08 Apr 2020.14:46:27.861287 
Wed,08 Apr 2020.14:46:27.862656 CPLD Version: 6.6
Wed,08 Apr 2020.14:46:27.863133 
Wed,08 Apr 2020.14:46:27.876474 EMMC: BCM2708 controller power-cycled
Wed,08 Apr 2020.14:46:27.876682 
Wed,08 Apr 2020.14:46:28.495794 Loading file /Palettes/Atom_MKII.bin
Wed,08 Apr 2020.14:46:28.502532 Loading file /Palettes/Atom_MKII_Full.bin
Wed,08 Apr 2020.14:46:28.502658 
Wed,08 Apr 2020.14:46:28.509421 Loading file /Palettes/Atom_MKII_Plus.bin
Wed,08 Apr 2020.14:46:28.509555 
Wed,08 Apr 2020.14:46:28.516458 Loading file /Palettes/Colour_Genie_N25.bin
Wed,08 Apr 2020.14:46:28.516582 
Wed,08 Apr 2020.14:46:28.525072 Loading file /Palettes/Colour_Genie_S24.bin
Wed,08 Apr 2020.14:46:28.525240 
Wed,08 Apr 2020.14:46:28.531574 Loading file /Palettes/Colour_Genie_S25.bin
Wed,08 Apr 2020.14:46:28.531756 
Wed,08 Apr 2020.14:46:28.538671 Loading file /Palettes/Dragon-CoCo.bin
Wed,08 Apr 2020.14:46:28.538843 
Wed,08 Apr 2020.14:46:28.545152 Loading file /Palettes/Dragon-CoCo_Emu.bin
Wed,08 Apr 2020.14:46:28.545456 
Wed,08 Apr 2020.14:46:28.551596 Loading file /Palettes/Dragon-CoCo_Full.bin
Wed,08 Apr 2020.14:46:28.552055 
Wed,08 Apr 2020.14:46:28.557663 Loading file /Palettes/MDA-Hercules.bin
Wed,08 Apr 2020.14:46:28.557835 
Wed,08 Apr 2020.14:46:28.563967 Loading file /Palettes/Mono_(2_level).bin
Wed,08 Apr 2020.14:46:28.564193 
Wed,08 Apr 2020.14:46:28.570849 Loading file /Palettes/Mono_(3_level).bin
Wed,08 Apr 2020.14:46:28.571052 
Wed,08 Apr 2020.14:46:28.577799 Loading file /Palettes/Mono_(4_level).bin
Wed,08 Apr 2020.14:46:28.578068 
Wed,08 Apr 2020.14:46:28.584595 Loading file /Palettes/Mono_(6_level).bin
Wed,08 Apr 2020.14:46:28.584776 
Wed,08 Apr 2020.14:46:28.590994 Loading file /Palettes/RGB.bin
Wed,08 Apr 2020.14:46:28.591152 
Wed,08 Apr 2020.14:46:28.595924 Loading file /Palettes/RGBI.bin
Wed,08 Apr 2020.14:46:28.596126 
Wed,08 Apr 2020.14:46:28.601185 Loading file /Palettes/RGBI_(CGA).bin
Wed,08 Apr 2020.14:46:28.601389 
Wed,08 Apr 2020.14:46:28.606806 Loading file /Palettes/RGBI_(Spectrum).bin
Wed,08 Apr 2020.14:46:28.607053 
Wed,08 Apr 2020.14:46:28.612631 Loading file /Palettes/RGBrgb_(Amstrad).bin
Wed,08 Apr 2020.14:46:28.612926 
Wed,08 Apr 2020.14:46:28.618529 Loading file /Palettes/RGBrgb_(Spectrum).bin
Wed,08 Apr 2020.14:46:28.618846 
Wed,08 Apr 2020.14:46:28.624043 Loading file /Palettes/RrGgBb_(EGA).bin
Wed,08 Apr 2020.14:46:28.624479 
Wed,08 Apr 2020.14:46:28.630528 Loading file /Palettes/Spectrum_48K_9Col.bin
Wed,08 Apr 2020.14:46:28.630840 
Wed,08 Apr 2020.14:46:28.639927 FOUND RESOLUTION: 1024x600@50Hz
Wed,08 Apr 2020.14:46:28.640295 
Wed,08 Apr 2020.14:46:28.642804 FOUND RESOLUTION: 1024x600@60Hz
Wed,08 Apr 2020.14:46:28.643044 
Wed,08 Apr 2020.14:46:28.645721 FOUND RESOLUTION: 1024x768@50Hz
Wed,08 Apr 2020.14:46:28.646002 
Wed,08 Apr 2020.14:46:28.648591 FOUND RESOLUTION: 1024x768@60Hz
Wed,08 Apr 2020.14:46:28.648802 
Wed,08 Apr 2020.14:46:28.651598 FOUND RESOLUTION: 1280x1024@50Hz
Wed,08 Apr 2020.14:46:28.651792 
Wed,08 Apr 2020.14:46:28.654602 FOUND RESOLUTION: 1280x1024@60Hz
Wed,08 Apr 2020.14:46:28.654898 
Wed,08 Apr 2020.14:46:28.657502 FOUND RESOLUTION: 1280x720@50Hz
Wed,08 Apr 2020.14:46:28.657761 
Wed,08 Apr 2020.14:46:28.660404 FOUND RESOLUTION: 1280x720@60Hz
Wed,08 Apr 2020.14:46:28.660667 
Wed,08 Apr 2020.14:46:28.663315 FOUND RESOLUTION: 1280x800@50Hz
Wed,08 Apr 2020.14:46:28.663679 
Wed,08 Apr 2020.14:46:28.666223 FOUND RESOLUTION: 1280x800@60Hz
Wed,08 Apr 2020.14:46:28.666573 
Wed,08 Apr 2020.14:46:28.669155 FOUND RESOLUTION: 1368x768@50Hz
Wed,08 Apr 2020.14:46:28.669437 
Wed,08 Apr 2020.14:46:28.672131 FOUND RESOLUTION: 1368x768@60Hz
Wed,08 Apr 2020.14:46:28.672683 
Wed,08 Apr 2020.14:46:28.675073 FOUND RESOLUTION: 1600x1200@50Hz
Wed,08 Apr 2020.14:46:28.675427 
Wed,08 Apr 2020.14:46:28.677979 FOUND RESOLUTION: 1600x1200@60Hz
Wed,08 Apr 2020.14:46:28.678242 
Wed,08 Apr 2020.14:46:28.680966 FOUND RESOLUTION: 1920x1080@50Hz
Wed,08 Apr 2020.14:46:28.681181 
Wed,08 Apr 2020.14:46:28.683922 FOUND RESOLUTION: 1920x1080@60Hz
Wed,08 Apr 2020.14:46:28.684127 
Wed,08 Apr 2020.14:46:28.686907 FOUND RESOLUTION: 1920x1200@50Hz
Wed,08 Apr 2020.14:46:28.687085 
Wed,08 Apr 2020.14:46:28.689897 FOUND RESOLUTION: 1920x1200@60Hz
Wed,08 Apr 2020.14:46:28.690090 
Wed,08 Apr 2020.14:46:28.692725 FOUND RESOLUTION: 640x480@50Hz
Wed,08 Apr 2020.14:46:28.692916 
Wed,08 Apr 2020.14:46:28.695565 FOUND RESOLUTION: 640x480@60Hz
Wed,08 Apr 2020.14:46:28.695828 
Wed,08 Apr 2020.14:46:28.698374 FOUND RESOLUTION: 720x576@50Hz
Wed,08 Apr 2020.14:46:28.698634 
Wed,08 Apr 2020.14:46:28.701208 FOUND RESOLUTION: 800x600@50Hz
Wed,08 Apr 2020.14:46:28.701469 
Wed,08 Apr 2020.14:46:28.703959 FOUND RESOLUTION: 800x600@60Hz
Wed,08 Apr 2020.14:46:28.704147 
Wed,08 Apr 2020.14:46:28.706771 FOUND RESOLUTION: Default@60Hz
Wed,08 Apr 2020.14:46:28.706960 
Wed,08 Apr 2020.14:46:28.709394 Loading file /config.txt
Wed,08 Apr 2020.14:46:28.709600 
Wed,08 Apr 2020.14:46:28.713678 Read resolution: 1280x800@60Hz
Wed,08 Apr 2020.14:46:28.713981 
Wed,08 Apr 2020.14:46:28.716850 Match resolution: 9 1280x800@60Hz
Wed,08 Apr 2020.14:46:28.717481 
Wed,08 Apr 2020.14:46:28.718186 Read scaling: 1
Wed,08 Apr 2020.14:46:28.718348 
Wed,08 Apr 2020.14:46:28.727759 Loading file: /Profiles/3BIT_RGB/Default.txt
Wed,08 Apr 2020.14:46:28.727951 
Wed,08 Apr 2020.14:46:28.751616 FOUND PROFILE: Atom
Wed,08 Apr 2020.14:46:28.751785 
Wed,08 Apr 2020.14:46:28.753876 FOUND PROFILE: BBC_Micro
Wed,08 Apr 2020.14:46:28.753988 
Wed,08 Apr 2020.14:46:28.756683 FOUND PROFILE: BBC_Micro_24MHz
Wed,08 Apr 2020.14:46:28.756790 
Wed,08 Apr 2020.14:46:28.759505 FOUND PROFILE: Camputers_Lynx
Wed,08 Apr 2020.14:46:28.759754 
Wed,08 Apr 2020.14:46:28.762310 FOUND SUB-FOLDER: Colour Test
Wed,08 Apr 2020.14:46:28.762748 
Wed,08 Apr 2020.14:46:28.764853 FOUND PROFILE: Colour_Genie
Wed,08 Apr 2020.14:46:28.765293 
Wed,08 Apr 2020.14:46:28.767247 FOUND PROFILE: Communicator
Wed,08 Apr 2020.14:46:28.767400 
Wed,08 Apr 2020.14:46:28.770304 FOUND PROFILE: Communicator_Mode7
Wed,08 Apr 2020.14:46:28.770403 
Wed,08 Apr 2020.14:46:28.772347 FOUND PROFILE: Custom
Wed,08 Apr 2020.14:46:28.772491 
Wed,08 Apr 2020.14:46:28.774543 FOUND PROFILE: Electron
Wed,08 Apr 2020.14:46:28.774679 
Wed,08 Apr 2020.14:46:28.776372 FOUND PROFILE: Oric
Wed,08 Apr 2020.14:46:28.776473 
Wed,08 Apr 2020.14:46:28.778063 FOUND PROFILE: QL
Wed,08 Apr 2020.14:46:28.778229 
Wed,08 Apr 2020.14:46:28.780431 FOUND PROFILE: Station129
Wed,08 Apr 2020.14:46:28.780574 
Wed,08 Apr 2020.14:46:28.782612 FOUND PROFILE: Teletext
Wed,08 Apr 2020.14:46:28.782715 
Wed,08 Apr 2020.14:46:28.784448 FOUND PROFILE: ZX80
Wed,08 Apr 2020.14:46:28.784549 
Wed,08 Apr 2020.14:46:28.787903 Loading file /profile_3BIT_RGB.txt
Wed,08 Apr 2020.14:46:28.788016 
Wed,08 Apr 2020.14:46:28.791044 Setting profile to 12
Wed,08 Apr 2020.14:46:28.791256 
Wed,08 Apr 2020.14:46:28.798425 Loading file: /Saved_Profiles/3BIT_RGB/Station129.txt
Wed,08 Apr 2020.14:46:28.798576 
Wed,08 Apr 2020.14:46:28.803898 Setting subprofile to 0
Wed,08 Apr 2020.14:46:28.804028 
Wed,08 Apr 2020.14:46:28.805848 Profile = Station129
Wed,08 Apr 2020.14:46:28.806009 
Wed,08 Apr 2020.14:46:28.810245 Analyze Csync: polarity unchanged (non-inverted)
Wed,08 Apr 2020.14:46:28.810417 
Wed,08 Apr 2020.14:46:28.887156 Detected polarity state at startup = Comp (Separate H & V CPLD)
Wed,08 Apr 2020.14:46:28.887280 
Wed,08 Apr 2020.14:46:28.890068 Keycount = 0
Wed,08 Apr 2020.14:46:28.890310 
Wed,08 Apr 2020.14:46:28.894764 -----------------------LOOP------------------------
Wed,08 Apr 2020.14:46:28.894921 
Wed,08 Apr 2020.14:46:28.900510 Analyze Csync: polarity unchanged (non-inverted)
Wed,08 Apr 2020.14:46:28.900662 
Wed,08 Apr 2020.14:46:28.904153 Detected polarity state = 4, Comp (Separate H & V CPLD)
Wed,08 Apr 2020.14:46:28.904305 
Wed,08 Apr 2020.14:46:28.912110         clkinfo.clock = 12000000 Hz
Wed,08 Apr 2020.14:46:28.912244 
Wed,08 Apr 2020.14:46:28.914654      clkinfo.line_len = 768
Wed,08 Apr 2020.14:46:28.914817 
Wed,08 Apr 2020.14:46:28.917620     clkinfo.clock_ppm = 5000 ppm
Wed,08 Apr 2020.14:46:28.917749 
Wed,08 Apr 2020.14:46:28.939798     Nominal 100 lines = 6400000 ns
Wed,08 Apr 2020.14:46:28.939960 
Wed,08 Apr 2020.14:46:28.942922      Actual 100 lines = 6405229 ns
Wed,08 Apr 2020.14:46:28.943080 
Wed,08 Apr 2020.14:46:28.945808           Clock error = 817 PPM
Wed,08 Apr 2020.14:46:28.945957 
Wed,08 Apr 2020.14:46:28.949059  Error adjusted clock = 11990203 Hz
Wed,08 Apr 2020.14:46:28.949172 
Wed,08 Apr 2020.14:46:28.954344  Target PLL frequency = 2302119096 Hz, prediv = 1, PER = 4
Wed,08 Apr 2020.14:46:28.954512 
Wed,08 Apr 2020.14:46:28.957753  Actual PLL frequency = 2302119096 Hz
Wed,08 Apr 2020.14:46:28.957863 
Wed,08 Apr 2020.14:46:28.960146         GPCLK Divisor = 6
Wed,08 Apr 2020.14:46:28.960262 
Wed,08 Apr 2020.14:46:29.032475       Lines per frame = 625, (624.995)
Wed,08 Apr 2020.14:46:29.032630 
Wed,08 Apr 2020.14:46:29.038424 Actual frame time = 40032750 ns (interlaced), line time = 64052 ns
Wed,08 Apr 2020.14:46:29.038508 
Wed,08 Apr 2020.14:46:29.044057 Window: H = 63732 to 64372, V = 19916294 to 20116456, S = Comp
Wed,08 Apr 2020.14:46:29.044661 
Wed,08 Apr 2020.14:46:29.071260 Width or Height differ from last FB: Setting dummy 64x64 framebuffer
Wed,08 Apr 2020.14:46:29.071409 
Wed,08 Apr 2020.14:46:29.074464 Overscan L=360, R=361, T=120, B=121
Wed,08 Apr 2020.14:46:29.074595 
Wed,08 Apr 2020.14:46:29.103124 Initialised Framebuffer
Wed,08 Apr 2020.14:46:29.103323 
Wed,08 Apr 2020.14:46:29.104650 Size: 1920x8192 
Wed,08 Apr 2020.14:46:29.104766 
Wed,08 Apr 2020.14:46:29.111014 Invalid frame buffer dimensions - maybe HDMI not connected - rebooting
Wed,08 Apr 2020.14:46:29.111207 
Wed,08 Apr 2020.14:46:31.186680 ***********************RESET***********************
Wed,08 Apr 2020.14:46:31.186932 
Wed,08 Apr 2020.14:46:31.188392 RGB to HDMI booted
Wed,08 Apr 2020.14:46:31.188558 
Wed,08 Apr 2020.14:46:31.191870 8 bit board NOT detected
Wed,08 Apr 2020.14:46:31.192036 
Wed,08 Apr 2020.14:46:31.194892 Using PLLA as the sampling clock
Wed,08 Apr 2020.14:46:31.195082 
Wed,08 Apr 2020.14:46:31.197950 PLLA: 2400.000000 ANA1 = 00144000
Wed,08 Apr 2020.14:46:31.198121 
Wed,08 Apr 2020.14:46:31.205087 PLLA: PDIV=1 NDIV=62 CTRL=0002103e FRAC=524288 DSI0=256 CORE=2 PER=256 CCP2=256
Wed,08 Apr 2020.14:46:31.205272 
Wed,08 Apr 2020.14:46:31.208128 PLLB: 2000.000024 ANA1 = 00144000
Wed,08 Apr 2020.14:46:31.208239 
Wed,08 Apr 2020.14:46:31.214914 PLLB: PDIV=1 NDIV=52 CTRL=00021034 FRAC=87382 ARM=2 SP0=256 SP1=256 SP2=256
Wed,08 Apr 2020.14:46:31.215085 
Wed,08 Apr 2020.14:46:31.218065 PLLC: 2400.000000, ANA1 = 00144000
Wed,08 Apr 2020.14:46:31.218205 
Wed,08 Apr 2020.14:46:31.225350 PLLC: PDIV=1 NDIV=62 CTRL=0002103e FRAC=524288 CORE2=256 CORE1=256 PER=2 CORE0=2
Wed,08 Apr 2020.14:46:31.225595 
Wed,08 Apr 2020.14:46:31.228359 PLLD: 2000.000024 ANA1 = 00144000
Wed,08 Apr 2020.14:46:31.228577 
Wed,08 Apr 2020.14:46:31.235238 PLLD: PDIV=1 NDIV=52 CTRL=00021034 FRAC=87382 DSI0=256 CORE=4 PER=4 DSI1=256
Wed,08 Apr 2020.14:46:31.235488 
Wed,08 Apr 2020.14:46:31.238220 PLLH: 834.999994 ANA1 = 00144000
Wed,08 Apr 2020.14:46:31.238466 
Wed,08 Apr 2020.14:46:31.245443 PLLH: PDIV=1 NDIV=43 CTRL=0002102b FRAC=513365 AUX=256 RCAL=256 PIX=1 STS=528367
Wed,08 Apr 2020.14:46:31.245750 
Wed,08 Apr 2020.14:46:31.248542 PLLA: 2400.000000 ANA1 = 00144000
Wed,08 Apr 2020.14:46:31.248877 
Wed,08 Apr 2020.14:46:31.255716 PLLA: PDIV=1 NDIV=62 CTRL=0002103e FRAC=524288 DSI0=256 CORE=256 PER=4 CCP2=256
Wed,08 Apr 2020.14:46:31.256309 
Wed,08 Apr 2020.14:46:31.258602 CPU speed detected as: 1000 Mhz
Wed,08 Apr 2020.14:46:31.259013 
Wed,08 Apr 2020.14:46:31.259863 Keycount = 0
Wed,08 Apr 2020.14:46:31.260537 
Wed,08 Apr 2020.14:46:31.261849 CPLD  Design: 3BIT_RGB
Wed,08 Apr 2020.14:46:31.262117 
Wed,08 Apr 2020.14:46:31.263500 CPLD Version: 6.6
Wed,08 Apr 2020.14:46:31.263677 
Wed,08 Apr 2020.14:46:31.277427 EMMC: BCM2708 controller power-cycled
Wed,08 Apr 2020.14:46:31.277715 
Wed,08 Apr 2020.14:46:31.896863 Loading file /Palettes/Atom_MKII.bin
Wed,08 Apr 2020.14:46:31.903610 Loading file /Palettes/Atom_MKII_Full.bin
Wed,08 Apr 2020.14:46:31.903925 
Wed,08 Apr 2020.14:46:31.910410 Loading file /Palettes/Atom_MKII_Plus.bin
Wed,08 Apr 2020.14:46:31.910612 
Wed,08 Apr 2020.14:46:31.917562 Loading file /Palettes/Colour_Genie_N25.bin
Wed,08 Apr 2020.14:46:31.917885 
Wed,08 Apr 2020.14:46:31.925037 Loading file /Palettes/Colour_Genie_S24.bin
Wed,08 Apr 2020.14:46:31.932590 Loading file /Palettes/Colour_Genie_S25.bin
Wed,08 Apr 2020.14:46:31.932812 
Wed,08 Apr 2020.14:46:31.939670 Loading file /Palettes/Dragon-CoCo.bin
Wed,08 Apr 2020.14:46:31.939856 
Wed,08 Apr 2020.14:46:31.946142 Loading file /Palettes/Dragon-CoCo_Emu.bin
Wed,08 Apr 2020.14:46:31.946422 
Wed,08 Apr 2020.14:46:31.952762 Loading file /Palettes/Dragon-CoCo_Full.bin
Wed,08 Apr 2020.14:46:31.953458 
Wed,08 Apr 2020.14:46:31.958709 Loading file /Palettes/MDA-Hercules.bin
Wed,08 Apr 2020.14:46:31.959100 
Wed,08 Apr 2020.14:46:31.967438 Loading file /Palettes/Mono_(2_level).bin
Wed,08 Apr 2020.14:46:31.967978 
Wed,08 Apr 2020.14:46:31.972000 Loading file /Palettes/Mono_(3_level).bin
Wed,08 Apr 2020.14:46:31.972498 
Wed,08 Apr 2020.14:46:31.978734 Loading file /Palettes/Mono_(4_level).bin
Wed,08 Apr 2020.14:46:31.978963 
Wed,08 Apr 2020.14:46:31.985622 Loading file /Palettes/Mono_(6_level).bin
Wed,08 Apr 2020.14:46:31.985786 
Wed,08 Apr 2020.14:46:31.992065 Loading file /Palettes/RGB.bin
Wed,08 Apr 2020.14:46:31.992565 
Wed,08 Apr 2020.14:46:31.996970 Loading file /Palettes/RGBI.bin
Wed,08 Apr 2020.14:46:31.997359 
Wed,08 Apr 2020.14:46:32.002344 Loading file /Palettes/RGBI_(CGA).bin
Wed,08 Apr 2020.14:46:32.002818 
Wed,08 Apr 2020.14:46:32.007803 Loading file /Palettes/RGBI_(Spectrum).bin
Wed,08 Apr 2020.14:46:32.008070 
Wed,08 Apr 2020.14:46:32.013692 Loading file /Palettes/RGBrgb_(Amstrad).bin
Wed,08 Apr 2020.14:46:32.014099 
Wed,08 Apr 2020.14:46:32.019500 Loading file /Palettes/RGBrgb_(Spectrum).bin
Wed,08 Apr 2020.14:46:32.019783 
Wed,08 Apr 2020.14:46:32.024947 Loading file /Palettes/RrGgBb_(EGA).bin
Wed,08 Apr 2020.14:46:32.025227 
Wed,08 Apr 2020.14:46:32.031537 Loading file /Palettes/Spectrum_48K_9Col.bin
Wed,08 Apr 2020.14:46:32.031906 
Wed,08 Apr 2020.14:46:32.041103 FOUND RESOLUTION: 1024x600@50Hz
Wed,08 Apr 2020.14:46:32.041641 
Wed,08 Apr 2020.14:46:32.043942 FOUND RESOLUTION: 1024x600@60Hz
Wed,08 Apr 2020.14:46:32.044473 
Wed,08 Apr 2020.14:46:32.046709 FOUND RESOLUTION: 1024x768@50Hz
Wed,08 Apr 2020.14:46:32.047010 
Wed,08 Apr 2020.14:46:32.049638 FOUND RESOLUTION: 1024x768@60Hz
Wed,08 Apr 2020.14:46:32.050021 
Wed,08 Apr 2020.14:46:32.052627 FOUND RESOLUTION: 1280x1024@50Hz
Wed,08 Apr 2020.14:46:32.052993 
Wed,08 Apr 2020.14:46:32.055592 FOUND RESOLUTION: 1280x1024@60Hz
Wed,08 Apr 2020.14:46:32.055941 
Wed,08 Apr 2020.14:46:32.058504 FOUND RESOLUTION: 1280x720@50Hz
Wed,08 Apr 2020.14:46:32.058818 
Wed,08 Apr 2020.14:46:32.061379 FOUND RESOLUTION: 1280x720@60Hz
Wed,08 Apr 2020.14:46:32.061639 
Wed,08 Apr 2020.14:46:32.064275 FOUND RESOLUTION: 1280x800@50Hz
Wed,08 Apr 2020.14:46:32.064516 
Wed,08 Apr 2020.14:46:32.067173 FOUND RESOLUTION: 1280x800@60Hz
Wed,08 Apr 2020.14:46:32.067417 
Wed,08 Apr 2020.14:46:32.070092 FOUND RESOLUTION: 1368x768@50Hz
Wed,08 Apr 2020.14:46:32.070448 
Wed,08 Apr 2020.14:46:32.073019 FOUND RESOLUTION: 1368x768@60Hz
Wed,08 Apr 2020.14:46:32.073425 
Wed,08 Apr 2020.14:46:32.076009 FOUND RESOLUTION: 1600x1200@50Hz
Wed,08 Apr 2020.14:46:32.076339 
Wed,08 Apr 2020.14:46:32.078979 FOUND RESOLUTION: 1600x1200@60Hz
Wed,08 Apr 2020.14:46:32.079255 
Wed,08 Apr 2020.14:46:32.082116 FOUND RESOLUTION: 1920x1080@50Hz
Wed,08 Apr 2020.14:46:32.082534 
Wed,08 Apr 2020.14:46:32.085088 FOUND RESOLUTION: 1920x1080@60Hz
Wed,08 Apr 2020.14:46:32.085590 
Wed,08 Apr 2020.14:46:32.087915 FOUND RESOLUTION: 1920x1200@50Hz
Wed,08 Apr 2020.14:46:32.088122 
Wed,08 Apr 2020.14:46:32.090899 FOUND RESOLUTION: 1920x1200@60Hz
Wed,08 Apr 2020.14:46:32.091089 
Wed,08 Apr 2020.14:46:32.093724 FOUND RESOLUTION: 640x480@50Hz
Wed,08 Apr 2020.14:46:32.093936 
Wed,08 Apr 2020.14:46:32.096530 FOUND RESOLUTION: 640x480@60Hz
Wed,08 Apr 2020.14:46:32.096728 
Wed,08 Apr 2020.14:46:32.099327 FOUND RESOLUTION: 720x576@50Hz
Wed,08 Apr 2020.14:46:32.099513 
Wed,08 Apr 2020.14:46:32.102159 FOUND RESOLUTION: 800x600@50Hz
Wed,08 Apr 2020.14:46:32.102357 
Wed,08 Apr 2020.14:46:32.104957 FOUND RESOLUTION: 800x600@60Hz
Wed,08 Apr 2020.14:46:32.105123 
Wed,08 Apr 2020.14:46:32.107793 FOUND RESOLUTION: Default@60Hz
Wed,08 Apr 2020.14:46:32.107985 
Wed,08 Apr 2020.14:46:32.110354 Loading file /config.txt
Wed,08 Apr 2020.14:46:32.110715 
Wed,08 Apr 2020.14:46:32.114792 Read resolution: 1280x800@60Hz
Wed,08 Apr 2020.14:46:32.115365 
Wed,08 Apr 2020.14:46:32.117817 Match resolution: 9 1280x800@60Hz
Wed,08 Apr 2020.14:46:32.118324 
Wed,08 Apr 2020.14:46:32.119268 Read scaling: 1
Wed,08 Apr 2020.14:46:32.119798 
Wed,08 Apr 2020.14:46:32.128760 Loading file: /Profiles/3BIT_RGB/Default.txt
Wed,08 Apr 2020.14:46:32.128921 
Wed,08 Apr 2020.14:46:32.152775 FOUND PROFILE: Atom
Wed,08 Apr 2020.14:46:32.153213 
Wed,08 Apr 2020.14:46:32.154987 FOUND PROFILE: BBC_Micro
Wed,08 Apr 2020.14:46:32.155411 
Wed,08 Apr 2020.14:46:32.157715 FOUND PROFILE: BBC_Micro_24MHz
Wed,08 Apr 2020.14:46:32.157839 
Wed,08 Apr 2020.14:46:32.160444 FOUND PROFILE: Camputers_Lynx
Wed,08 Apr 2020.14:46:32.160613 
Wed,08 Apr 2020.14:46:32.163167 FOUND SUB-FOLDER: Colour Test
Wed,08 Apr 2020.14:46:32.163327 
Wed,08 Apr 2020.14:46:32.165691 FOUND PROFILE: Colour_Genie
Wed,08 Apr 2020.14:46:32.165802 
Wed,08 Apr 2020.14:46:32.168239 FOUND PROFILE: Communicator
Wed,08 Apr 2020.14:46:32.168349 
Wed,08 Apr 2020.14:46:32.171323 FOUND PROFILE: Communicator_Mode7
Wed,08 Apr 2020.14:46:32.171462 
Wed,08 Apr 2020.14:46:32.173467 FOUND PROFILE: Custom
Wed,08 Apr 2020.14:46:32.173702 
Wed,08 Apr 2020.14:46:32.175617 FOUND PROFILE: Electron
Wed,08 Apr 2020.14:46:32.175990 
Wed,08 Apr 2020.14:46:32.177539 FOUND PROFILE: Oric
Wed,08 Apr 2020.14:46:32.178016 
Wed,08 Apr 2020.14:46:32.179222 FOUND PROFILE: QL
Wed,08 Apr 2020.14:46:32.179687 
Wed,08 Apr 2020.14:46:32.181442 FOUND PROFILE: Station129
Wed,08 Apr 2020.14:46:32.181583 
Wed,08 Apr 2020.14:46:32.183640 FOUND PROFILE: Teletext
Wed,08 Apr 2020.14:46:32.183866 
Wed,08 Apr 2020.14:46:32.185476 FOUND PROFILE: ZX80
Wed,08 Apr 2020.14:46:32.185617 
Wed,08 Apr 2020.14:46:32.188916 Loading file /profile_3BIT_RGB.txt
Wed,08 Apr 2020.14:46:32.189036 
Wed,08 Apr 2020.14:46:32.191984 Setting profile to 12
Wed,08 Apr 2020.14:46:32.192122 
Wed,08 Apr 2020.14:46:32.199481 Loading file: /Saved_Profiles/3BIT_RGB/Station129.txt
Wed,08 Apr 2020.14:46:32.199769 
Wed,08 Apr 2020.14:46:32.205096 Setting subprofile to 0
Wed,08 Apr 2020.14:46:32.205530 
Wed,08 Apr 2020.14:46:32.206834 Profile = Station129
Wed,08 Apr 2020.14:46:32.206936 
Wed,08 Apr 2020.14:46:32.211258 Analyze Csync: polarity unchanged (non-inverted)
Wed,08 Apr 2020.14:46:32.211445 
Wed,08 Apr 2020.14:46:32.288172 Detected polarity state at startup = Comp (Separate H & V CPLD)
Wed,08 Apr 2020.14:46:32.288307 
Wed,08 Apr 2020.14:46:32.292850 Keycount = 0
Wed,08 Apr 2020.14:46:32.292948 
Wed,08 Apr 2020.14:46:32.297527 -----------------------LOOP------------------------
Wed,08 Apr 2020.14:46:32.297652 
Wed,08 Apr 2020.14:46:32.301932 Analyze Csync: polarity unchanged (non-inverted)
Wed,08 Apr 2020.14:46:32.302145 
Wed,08 Apr 2020.14:46:32.306911 Detected polarity state = 4, Comp (Separate H & V CPLD)
Wed,08 Apr 2020.14:46:32.307001 
Wed,08 Apr 2020.14:46:32.314878         clkinfo.clock = 12000000 Hz
Wed,08 Apr 2020.14:46:32.315009 
Wed,08 Apr 2020.14:46:32.317414      clkinfo.line_len = 768
Wed,08 Apr 2020.14:46:32.317518 
Wed,08 Apr 2020.14:46:32.320408     clkinfo.clock_ppm = 5000 ppm
Wed,08 Apr 2020.14:46:32.320523 
Wed,08 Apr 2020.14:46:32.342683     Nominal 100 lines = 6400000 ns
Wed,08 Apr 2020.14:46:32.342816 
Wed,08 Apr 2020.14:46:32.345703      Actual 100 lines = 6405199 ns
Wed,08 Apr 2020.14:46:32.345834 
Wed,08 Apr 2020.14:46:32.348594           Clock error = 812 PPM
Wed,08 Apr 2020.14:46:32.348761 
Wed,08 Apr 2020.14:46:32.351831  Error adjusted clock = 11990259 Hz
Wed,08 Apr 2020.14:46:32.351997 
Wed,08 Apr 2020.14:46:32.357111  Target PLL frequency = 2302129872 Hz, prediv = 1, PER = 4
Wed,08 Apr 2020.14:46:32.357260 
Wed,08 Apr 2020.14:46:32.360540  Actual PLL frequency = 2302129872 Hz
Wed,08 Apr 2020.14:46:32.360689 
Wed,08 Apr 2020.14:46:32.362918         GPCLK Divisor = 6
Wed,08 Apr 2020.14:46:32.363102 
Wed,08 Apr 2020.14:46:32.434905       Lines per frame = 625, (625)
Wed,08 Apr 2020.14:46:32.435037 
Wed,08 Apr 2020.14:46:32.440855 Actual frame time = 40032683 ns (interlaced), line time = 64052 ns
Wed,08 Apr 2020.14:46:32.440950 
Wed,08 Apr 2020.14:46:32.446498 Window: H = 63732 to 64372, V = 19916260 to 20116422, S = Comp
Wed,08 Apr 2020.14:46:32.446648 
Wed,08 Apr 2020.14:46:32.473693 Width or Height differ from last FB: Setting dummy 64x64 framebuffer
Wed,08 Apr 2020.14:46:32.473923 
Wed,08 Apr 2020.14:46:32.476185 Overscan L=0, R=0, T=1, B=2
Wed,08 Apr 2020.14:46:32.476319 
Wed,08 Apr 2020.14:46:32.503861 Initialised Framebuffer
Wed,08 Apr 2020.14:46:32.504080 
Wed,08 Apr 2020.14:46:32.505209 Size: 640x532 
Wed,08 Apr 2020.14:46:32.505315 
Wed,08 Apr 2020.14:46:32.506790 Pitch: 320 bytes
Wed,08 Apr 2020.14:46:32.506912 
Wed,08 Apr 2020.14:46:32.509520 Framebuffer address: DE000000
Wed,08 Apr 2020.14:46:32.509657 
Wed,08 Apr 2020.14:46:32.542162 RAM benchmark: Main memory = 801090 ns, Screen memory = 26386771 ns
Wed,08 Apr 2020.14:46:32.542387 
Image

User avatar
IanB
Posts: 538
Joined: Sun Sep 04, 2011 8:28 pm
Location: South Wales
Contact:

Re: RGB to HDMI using a Pi Zero and a small CPLD

Post by IanB » Wed Apr 08, 2020 5:04 pm

BeebMaster wrote:
Wed Apr 08, 2020 2:47 pm
If it helps this is the debug output with Fill 4:3 scaling (no picture):

Code: Select all

Wed,08 Apr 2020.14:42:05.435663 Initialised Framebuffer
Wed,08 Apr 2020.14:42:05.437121 Size: 1296x288 
Wed,08 Apr 2020.14:42:05.438699 Pitch: 656 bytes
Again that doesn't look the right size for the resolution and profile.

Can you first update to the RC9 release as that contains an extra delay on startup which might help.

Then overwrite the kernel.img with this version which now checks that the supplied resolution matches the requested resolution.

Note also with RC9 there are BBC micro and Master 128 profiles so you can switch between them without having to recalibrate every time.
kernelrpi.zip
(117.84 KiB) Downloaded 7 times

User avatar
BeebMaster
Posts: 3214
Joined: Sun Aug 02, 2009 5:59 pm
Location: Lost in the BeebVault!
Contact:

Re: RGB to HDMI using a Pi Zero and a small CPLD

Post by BeebMaster » Wed Apr 08, 2020 8:19 pm

Sadly that hasn't helped after both updates. I think we'll just have to put it down to a rogue card.

Code: Select all

sudo cat /dev/ttyS0 | ts "%a,%d %b %Y.%.T"
Wed,08 Apr 2020.20:15:49.685968 *******RE********
Wed,08 Apr 2020.20:15:49.686701 RGB to HDMI booted
Wed,08 Apr 2020.20:15:49.686885 
Wed,08 Apr 2020.20:15:49.690120 8 bit board NOT detected
Wed,08 Apr 2020.20:15:49.690317 
Wed,08 Apr 2020.20:15:49.693094 Using PLLA as the sampling clock
Wed,08 Apr 2020.20:15:49.693300 
Wed,08 Apr 2020.20:15:49.696167 PLLA: 2400.000000 ANA1 = 00144000
Wed,08 Apr 2020.20:15:49.696363 
Wed,08 Apr 2020.20:15:49.704808 PLLA: PDIV=1 NDIV=62 CTRL=0002103e FRAC=524288 DSI0=256 CORE=2 PER=256 CCP2=256
Wed,08 Apr 2020.20:15:49.705082 
Wed,08 Apr 2020.20:15:49.706410 PLLB: 2000.000024 ANA1 = 00144000
Wed,08 Apr 2020.20:15:49.706704 
Wed,08 Apr 2020.20:15:49.713200 PLLB: PDIV=1 NDIV=52 CTRL=00021034 FRAC=87382 ARM=2 SP0=256 SP1=256 SP2=256
Wed,08 Apr 2020.20:15:49.713568 
Wed,08 Apr 2020.20:15:49.716343 PLLC: 2400.000000, ANA1 = 00144000
Wed,08 Apr 2020.20:15:49.716646 
Wed,08 Apr 2020.20:15:49.723562 1=256 PER=2 CORE0=2
Wed,08 Apr 2020.20:15:49.723888 
Wed,08 Apr 2020.20:15:49.738943 PLLD: 2000.000024 ANA1 = 00144000
Wed,08 Apr 2020.20:15:49.739221 
Wed,08 Apr 2020.20:15:49.739435 PLLD: PDIV=1 NDIV=52 CTRL=00021034 FRAC=87382 DSI0=256 CORE=4 PER=4 DSI1=256
Wed,08 Apr 2020.20:15:49.739600 
Wed,08 Apr 2020.20:15:49.739748 PLLH: 864.000000 ANA1 = 00144000
Wed,08 Apr 2020.20:15:49.739907 
Wed,08 Apr 2020.20:15:49.743267 PLLH: PDIV=1 NDIV=45 CTRL=0002102d FRAC=0 AUX=4 RCAL=256 PIX=256 STS=527597
Wed,08 Apr 2020.20:15:49.743714 
Wed,08 Apr 2020.20:15:49.746294 PLLA: 2400.000000 ANA1 = 00144000
Wed,08 Apr 2020.20:15:49.746549 
Wed,08 Apr 2020.20:15:49.753500 PLLA: PDIV=1 NDIV=62 CTRL=0002103e FRAC=524288 DSI0=256 CORE=256 PER=4 CCP2=256
Wed,08 Apr 2020.20:15:49.753787 
Wed,08 Apr 2020.20:15:49.756340 CPU speed detected as: 1000 Mhz
Wed,08 Apr 2020.20:15:49.756631 
Wed,08 Apr 2020.20:15:49.757544 Keycount = 0
Wed,08 Apr 2020.20:15:49.757824 
Wed,08 Apr 2020.20:15:49.759733 CPLD  Design: 3BIT_RGB
Wed,08 Apr 2020.20:15:49.760087 
Wed,08 Apr 2020.20:15:49.761361 CPLD Version: 6.6
Wed,08 Apr 2020.20:15:49.761667 
Wed,08 Apr 2020.20:15:50.275172 EMMC: BCM2708 controller power-cycled
Wed,08 Apr 2020.20:15:50.951611 Loading file /Palettes/Atom_MKII.bin
Wed,08 Apr 2020.20:15:50.951874 
Wed,08 Apr 2020.20:15:50.958976 Loading file /Palettes/Atom_MKII_Full.bin
Wed,08 Apr 2020.20:15:50.959156 
Wed,08 Apr 2020.20:15:50.966406 Loading file /Palettes/Atom_MKII_Plus.bin
Wed,08 Apr 2020.20:15:50.966633 
Wed,08 Apr 2020.20:15:50.973979 Loading file /Palettes/Colour_Genie_N25.bin
Wed,08 Apr 2020.20:15:50.974212 
Wed,08 Apr 2020.20:15:50.981880 Loading file /Palettes/Colour_Genie_S24.bin
Wed,08 Apr 2020.20:15:50.982088 
Wed,08 Apr 2020.20:15:50.989774 Loading file /Palettes/Colour_Genie_S25.bin
Wed,08 Apr 2020.20:15:50.990033 
Wed,08 Apr 2020.20:15:50.997188 Loading file /Palettes/Dragon-CoCo.bin
Wed,08 Apr 2020.20:15:50.997382 
Wed,08 Apr 2020.20:15:51.004379 Loading file /Palettes/Dragon-CoCo_Emu.bin
Wed,08 Apr 2020.20:15:51.004580 
Wed,08 Apr 2020.20:15:51.011650 Loading file /Palettes/Dragon-CoCo_Full.bin
Wed,08 Apr 2020.20:15:51.011857 
Wed,08 Apr 2020.20:15:51.018612 Loading file /Palettes/MDA-Hercules.bin
Wed,08 Apr 2020.20:15:51.018949 
Wed,08 Apr 2020.20:15:51.025794 Loading file /Palettes/Mono_(2_level).bin
Wed,08 Apr 2020.20:15:51.026262 
Wed,08 Apr 2020.20:15:51.033087 Loading file /Palettes/Mono_(3_level).bin
Wed,08 Apr 2020.20:15:51.033322 
Wed,08 Apr 2020.20:15:51.040471 Loading file /Palettes/Mono_(4_level).bin
Wed,08 Apr 2020.20:15:51.040663 
Wed,08 Apr 2020.20:15:51.047884 Loading file /Palettes/Mono_(6_level).bin
Wed,08 Apr 2020.20:15:51.048090 
Wed,08 Apr 2020.20:15:51.054653 Loading file /Palettes/RGB.bin
Wed,08 Apr 2020.20:15:51.054889 
Wed,08 Apr 2020.20:15:51.060608 Loading file /Palettes/RGBI.bin
Wed,08 Apr 2020.20:15:51.060846 
Wed,08 Apr 2020.20:15:51.066979 Loading file /Palettes/RGBI_(CGA).bin
Wed,08 Apr 2020.20:15:51.067184 
Wed,08 Apr 2020.20:15:51.073836 Loading file /Palettes/RGBI_(Spectrum).bin
Wed,08 Apr 2020.20:15:51.074059 
Wed,08 Apr 2020.20:15:51.080782 Loading file /Palettes/RGBrgb_(Amstrad).bin
Wed,08 Apr 2020.20:15:51.080976 
Wed,08 Apr 2020.20:15:51.087870 Loading file /Palettes/RGBrgb_(Spectrum).bin
Wed,08 Apr 2020.20:15:51.088090 
Wed,08 Apr 2020.20:15:51.094400 Loading file /Palettes/RrGgBb_(EGA).bin
Wed,08 Apr 2020.20:15:51.094552 
Wed,08 Apr 2020.20:15:51.101896 Loading file /Palettes/Spectrum_48K_9Col.bin
Wed,08 Apr 2020.20:15:51.102345 
Wed,08 Apr 2020.20:15:51.114278 FOUND RESOLUTION: 1024x600@50Hz
Wed,08 Apr 2020.20:15:51.114451 
Wed,08 Apr 2020.20:15:51.117175 FOUND RESOLUTION: 1024x600@60Hz
Wed,08 Apr 2020.20:15:51.117334 
Wed,08 Apr 2020.20:15:51.120128 FOUND RESOLUTION: 1024x768@50Hz
Wed,08 Apr 2020.20:15:51.120410 
Wed,08 Apr 2020.20:15:51.123016 FOUND RESOLUTION: 1024x768@60Hz
Wed,08 Apr 2020.20:15:51.123319 
Wed,08 Apr 2020.20:15:51.126101 FOUND RESOLUTION: 1280x1024@50Hz
Wed,08 Apr 2020.20:15:51.126510 
Wed,08 Apr 2020.20:15:51.128946 FOUND RESOLUTION: 1280x1024@60Hz
Wed,08 Apr 2020.20:15:51.129105 
Wed,08 Apr 2020.20:15:51.131830 FOUND RESOLUTION: 1280x720@50Hz
Wed,08 Apr 2020.20:15:51.131959 
Wed,08 Apr 2020.20:15:51.134725 FOUND RESOLUTION: 1280x720@60Hz
Wed,08 Apr 2020.20:15:51.134840 
Wed,08 Apr 2020.20:15:51.137651 FOUND RESOLUTION: 1280x800@50Hz
Wed,08 Apr 2020.20:15:51.137882 
Wed,08 Apr 2020.20:15:51.140553 FOUND RESOLUTION: 1280x800@60Hz
Wed,08 Apr 2020.20:15:51.140712 
Wed,08 Apr 2020.20:15:51.143445 FOUND RESOLUTION: 1368x768@50Hz
Wed,08 Apr 2020.20:15:51.143601 
Wed,08 Apr 2020.20:15:51.146440 FOUND RESOLUTION: 1368x768@60Hz
Wed,08 Apr 2020.20:15:51.146704 
Wed,08 Apr 2020.20:15:51.149502 FOUND RESOLUTION: 1600x1200@50Hz
Wed,08 Apr 2020.20:15:51.150013 
Wed,08 Apr 2020.20:15:51.152492 FOUND RESOLUTION: 1600x1200@60Hz
Wed,08 Apr 2020.20:15:51.152881 
Wed,08 Apr 2020.20:15:51.155308 FOUND RESOLUTION: 1920x1080@50Hz
Wed,08 Apr 2020.20:15:51.155465 
Wed,08 Apr 2020.20:15:51.158286 FOUND RESOLUTION: 1920x1080@60Hz
Wed,08 Apr 2020.20:15:51.158412 
Wed,08 Apr 2020.20:15:51.161274 FOUND RESOLUTION: 1920x1200@50Hz
Wed,08 Apr 2020.20:15:51.161403 
Wed,08 Apr 2020.20:15:51.164260 FOUND RESOLUTION: 1920x1200@60Hz
Wed,08 Apr 2020.20:15:51.164397 
Wed,08 Apr 2020.20:15:51.167058 FOUND RESOLUTION: 640x480@50Hz
Wed,08 Apr 2020.20:15:51.167148 
Wed,08 Apr 2020.20:15:51.170028 FOUND RESOLUTION: 640x480@60Hz
Wed,08 Apr 2020.20:15:51.170335 
Wed,08 Apr 2020.20:15:51.172812 FOUND RESOLUTION: 720x576@50Hz
Wed,08 Apr 2020.20:15:51.173316 
Wed,08 Apr 2020.20:15:51.175658 FOUND RESOLUTION: 800x480@50Hz
Wed,08 Apr 2020.20:15:51.176134 
Wed,08 Apr 2020.20:15:51.178316 FOUND RESOLUTION: 800x480@60Hz
Wed,08 Apr 2020.20:15:51.178434 
Wed,08 Apr 2020.20:15:51.181127 FOUND RESOLUTION: 800x600@50Hz
Wed,08 Apr 2020.20:15:51.181231 
Wed,08 Apr 2020.20:15:51.183953 FOUND RESOLUTION: 800x600@60Hz
Wed,08 Apr 2020.20:15:51.184094 
Wed,08 Apr 2020.20:15:51.186778 FOUND RESOLUTION: Default@60Hz
Wed,08 Apr 2020.20:15:51.186905 
Wed,08 Apr 2020.20:15:51.189325 Loading file /config.txt
Wed,08 Apr 2020.20:15:51.189456 
Wed,08 Apr 2020.20:15:51.194197 Read resolution: 1280x800@60Hz
Wed,08 Apr 2020.20:15:51.194358 
Wed,08 Apr 2020.20:15:51.197256 Match resolution: 9 1280x800@60Hz
Wed,08 Apr 2020.20:15:51.197355 
Wed,08 Apr 2020.20:15:51.198929 Read scaling: 5
Wed,08 Apr 2020.20:15:51.199206 
Wed,08 Apr 2020.20:15:51.211766 Loading file: /Profiles/3BIT_RGB/Default.txt
Wed,08 Apr 2020.20:15:51.211889 
Wed,08 Apr 2020.20:15:51.261148 FOUND PROFILE: Atom
Wed,08 Apr 2020.20:15:51.261277 
Wed,08 Apr 2020.20:15:51.263409 FOUND PROFILE: BBC_Micro
Wed,08 Apr 2020.20:15:51.263504 
Wed,08 Apr 2020.20:15:51.266131 FOUND PROFILE: Camputers_Lynx
Wed,08 Apr 2020.20:15:51.266223 
Wed,08 Apr 2020.20:15:51.268860 FOUND SUB-FOLDER: Colour Test
Wed,08 Apr 2020.20:15:51.268974 
Wed,08 Apr 2020.20:15:51.271403 FOUND PROFILE: Colour_Genie
Wed,08 Apr 2020.20:15:51.271490 
Wed,08 Apr 2020.20:15:51.273977 FOUND PROFILE: Communicator
Wed,08 Apr 2020.20:15:51.274104 
Wed,08 Apr 2020.20:15:51.277029 FOUND PROFILE: Communicator_Mode7
Wed,08 Apr 2020.20:15:51.277122 
Wed,08 Apr 2020.20:15:51.279051 FOUND PROFILE: Custom
Wed,08 Apr 2020.20:15:51.279187 
Wed,08 Apr 2020.20:15:51.281247 FOUND PROFILE: Electron
Wed,08 Apr 2020.20:15:51.281338 
Wed,08 Apr 2020.20:15:51.283619 FOUND PROFILE: Master_128
Wed,08 Apr 2020.20:15:51.283707 
Wed,08 Apr 2020.20:15:51.286520 FOUND PROFILE: Master_128_24MHz
Wed,08 Apr 2020.20:15:51.286612 
Wed,08 Apr 2020.20:15:51.288385 FOUND PROFILE: Oric
Wed,08 Apr 2020.20:15:51.288493 
Wed,08 Apr 2020.20:15:51.290039 FOUND PROFILE: QL
Wed,08 Apr 2020.20:15:51.290192 
Wed,08 Apr 2020.20:15:51.292435 FOUND PROFILE: Station129
Wed,08 Apr 2020.20:15:51.292579 
Wed,08 Apr 2020.20:15:51.294628 FOUND PROFILE: Teletext
Wed,08 Apr 2020.20:15:51.294746 
Wed,08 Apr 2020.20:15:51.296472 FOUND PROFILE: ZX80
Wed,08 Apr 2020.20:15:51.296575 
Wed,08 Apr 2020.20:15:51.299930 Loading file /profile_3BIT_RGB.txt
Wed,08 Apr 2020.20:15:51.300061 
Wed,08 Apr 2020.20:15:51.304482 Setting profile to 13
Wed,08 Apr 2020.20:15:51.304614 
Wed,08 Apr 2020.20:15:51.313622 Loading file: /Saved_Profiles/3BIT_RGB/Station129.txt
Wed,08 Apr 2020.20:15:51.314027 
Wed,08 Apr 2020.20:15:51.318980 Setting subprofile to 0
Wed,08 Apr 2020.20:15:51.319093 
Wed,08 Apr 2020.20:15:51.320926 Profile = Station129
Wed,08 Apr 2020.20:15:51.321052 
Wed,08 Apr 2020.20:15:51.325331 Analyze Csync: polarity unchanged (non-inverted)
Wed,08 Apr 2020.20:15:51.325485 
Wed,08 Apr 2020.20:15:51.402254 Detected polarity state at startup = Comp (Separate H & V CPLD)
Wed,08 Apr 2020.20:15:51.402379 
Wed,08 Apr 2020.20:15:51.408674 Keycount = 0
Wed,08 Apr 2020.20:15:51.408759 
Wed,08 Apr 2020.20:15:51.414387 -----------------------LOOP------------------------
Wed,08 Apr 2020.20:15:51.414527 
Wed,08 Apr 2020.20:15:51.417741 Analyze Csync: polarity unchanged (non-inverted)
Wed,08 Apr 2020.20:15:51.417862 
Wed,08 Apr 2020.20:15:51.422734 Detected polarity state = 4, Comp (Separate H & V CPLD)
Wed,08 Apr 2020.20:15:51.422866 
Wed,08 Apr 2020.20:15:51.430718         clkinfo.clock = 12000000 Hz
Wed,08 Apr 2020.20:15:51.430853 
Wed,08 Apr 2020.20:15:51.433246      clkinfo.line_len = 768
Wed,08 Apr 2020.20:15:51.433381 
Wed,08 Apr 2020.20:15:51.436237     clkinfo.clock_ppm = 5000 ppm
Wed,08 Apr 2020.20:15:51.436361 
Wed,08 Apr 2020.20:15:51.458347     Nominal 100 lines = 6400000 ns
Wed,08 Apr 2020.20:15:51.458463 
Wed,08 Apr 2020.20:15:51.461485      Actual 100 lines = 6405276 ns
Wed,08 Apr 2020.20:15:51.461600 
Wed,08 Apr 2020.20:15:51.464771           Clock error = 824 PPM
Wed,08 Apr 2020.20:15:51.464904 
Wed,08 Apr 2020.20:15:51.467665  Error adjusted clock = 11990115 Hz
Wed,08 Apr 2020.20:15:51.467802 
Wed,08 Apr 2020.20:15:51.472945  Target PLL frequency = 2302102200 Hz, prediv = 1, PER = 4
Wed,08 Apr 2020.20:15:51.473089 
Wed,08 Apr 2020.20:15:51.476361  Actual PLL frequency = 2302102200 Hz
Wed,08 Apr 2020.20:15:51.476486 
Wed,08 Apr 2020.20:15:51.478875         GPCLK Divisor = 6
Wed,08 Apr 2020.20:15:51.479120 
Wed,08 Apr 2020.20:15:51.551075       Lines per frame = 625, (624.994)
Wed,08 Apr 2020.20:15:51.551198 
Wed,08 Apr 2020.20:15:51.557030 Actual frame time = 40033048 ns (interlaced), line time = 64053 ns
Wed,08 Apr 2020.20:15:51.557113 
Wed,08 Apr 2020.20:15:51.562664 Window: H = 63733 to 64373, V = 19916442 to 20116606, S = Comp
Wed,08 Apr 2020.20:15:51.562771 
Wed,08 Apr 2020.20:15:51.589848 Width or Height differ from last FB: Setting dummy 64x64 framebuffer
Wed,08 Apr 2020.20:15:51.590053 
Wed,08 Apr 2020.20:15:51.592368 Overscan L=0, R=0, T=0, B=0
Wed,08 Apr 2020.20:15:51.592506 
Wed,08 Apr 2020.20:15:51.623792 Initialised Framebuffer
Wed,08 Apr 2020.20:15:51.623999 
Wed,08 Apr 2020.20:15:51.626912 Size: 576x288 (requested 576x288)
Wed,08 Apr 2020.20:15:51.627189 
Wed,08 Apr 2020.20:15:51.628482 Pitch: 288 bytes
Wed,08 Apr 2020.20:15:51.628759 
Wed,08 Apr 2020.20:15:51.631290 Framebuffer address: DE000000
Wed,08 Apr 2020.20:15:51.631741 
Image

User avatar
IanB
Posts: 538
Joined: Sun Sep 04, 2011 8:28 pm
Location: South Wales
Contact:

Re: RGB to HDMI using a Pi Zero and a small CPLD

Post by IanB » Wed Apr 08, 2020 10:19 pm

BeebMaster wrote:
Wed Apr 08, 2020 8:19 pm
Sadly that hasn't helped after both updates. I think we'll just have to put it down to a rogue card.
Can you post the log before and after pressing reset and also your custom profile.

User avatar
BeebMaster
Posts: 3214
Joined: Sun Aug 02, 2009 5:59 pm
Location: Lost in the BeebVault!
Contact:

Re: RGB to HDMI using a Pi Zero and a small CPLD

Post by BeebMaster » Thu Apr 09, 2020 1:03 pm

Right. Here it is with 4:3 scaling, where it doesn't display anything on screen, until I press reset. The full whack from Brr Beep to picture:

Code: Select all

Thu,09 Apr 2020.12:48:02.944276 
Thu,09 Apr 2020.12:48:02.945891 RGB to HDMI booted
Thu,09 Apr 2020.12:48:02.946067 
Thu,09 Apr 2020.12:48:02.949291 8 bit board NOT detected
Thu,09 Apr 2020.12:48:02.949435 
Thu,09 Apr 2020.12:48:02.952273 Using PLLA as the sampling clock
Thu,09 Apr 2020.12:48:02.952411 
Thu,09 Apr 2020.12:48:02.955346 PLLA: 2400.000000 ANA1 = 00144000
Thu,09 Apr 2020.12:48:02.955477 
Thu,09 Apr 2020.12:48:02.962494 PLLA: PDIV=1 NDIV=62 CTRL=0002103e FRAC=524288 DSI0=256 CORE=2 PER=256 CCP2=256
Thu,09 Apr 2020.12:48:02.962688 
Thu,09 Apr 2020.12:48:02.965541 PLLB: 2000.000024 ANA1 = 00144000
Thu,09 Apr 2020.12:48:02.965675 
Thu,09 Apr 2020.12:48:02.972334 PLLB: PDIV=1 NDIV=52 CTRL=00021034 FRAC=87382 ARM=2 SP0=256 SP1=256 SP2=256
Thu,09 Apr 2020.12:48:02.972522 
Thu,09 Apr 2020.12:48:02.975494 PLLC: 2400.000000, ANA1 = 00144000
Thu,09 Apr 2020.12:48:02.975695 
Thu,09 Apr 2020.12:48:02.982742 PLLC: PDIV=1 NDIV=62 CTRL=0002103e FRAC=524288 CORE2=256 CORE1=256 PER=2 CORE0=2
Thu,09 Apr 2020.12:48:02.982942 
Thu,09 Apr 2020.12:48:02.985762 PLLD: 2000.000024 ANA1 = 00144000
Thu,09 Apr 2020.12:48:02.985896 
Thu,09 Apr 2020.12:48:02.992632 PLLD: PDIV=1 NDIV=52 CTRL=00021034 FRAC=87382 DSI0=256 CORE=4 PER=4 DSI1=256
Thu,09 Apr 2020.12:48:02.992806 
Thu,09 Apr 2020.12:48:02.995596 PLLH: 864.000000 ANA1 = 00144000
Thu,09 Apr 2020.12:48:02.995732 
Thu,09 Apr 2020.12:48:03.002427 PLLH: PDIV=1 NDIV=45 CTRL=0002102d FRAC=0 AUX=4 RCAL=256 PIX=256 STS=527597
Thu,09 Apr 2020.12:48:03.002647 
Thu,09 Apr 2020.12:48:03.005484 PLLA: 2400.000000 ANA1 = 00144000
Thu,09 Apr 2020.12:48:03.005703 
Thu,09 Apr 2020.12:48:03.012630 PLLA: PDIV=1 NDIV=62 CTRL=0002103e FRAC=524288 DSI0=256 CORE=256 PER=4 CCP2=256
Thu,09 Apr 2020.12:48:03.012884 
Thu,09 Apr 2020.12:48:03.015562 CPU speed detected as: 1000 Mhz
Thu,09 Apr 2020.12:48:03.015828 
Thu,09 Apr 2020.12:48:03.016764 Keycount = 0
Thu,09 Apr 2020.12:48:03.017034 
Thu,09 Apr 2020.12:48:03.018800 CPLD  Design: 3BIT_RGB
Thu,09 Apr 2020.12:48:03.018932 
Thu,09 Apr 2020.12:48:03.020470 CPLD Version: 6.6
Thu,09 Apr 2020.12:48:03.020606 
Thu,09 Apr 2020.12:48:03.534421 EMMC: BCM2708 controller power-cycled
Thu,09 Apr 2020.12:48:03.534658 
Thu,09 Apr 2020.12:48:04.210894 Loading file /Palettes/Atom_MKII.bin
Thu,09 Apr 2020.12:48:04.211152 
Thu,09 Apr 2020.12:48:04.218262 Loading file /Palettes/Atom_MKII_Full.bin
Thu,09 Apr 2020.12:48:04.218428 
Thu,09 Apr 2020.12:48:04.225794 Loading file /Palettes/Atom_MKII_Plus.bin
Thu,09 Apr 2020.12:48:04.226018 
Thu,09 Apr 2020.12:48:04.233246 Loading file /Palettes/Colour_Genie_N25.bin
Thu,09 Apr 2020.12:48:04.233397 
Thu,09 Apr 2020.12:48:04.241160 Loading file /Palettes/Colour_Genie_S24.bin
Thu,09 Apr 2020.12:48:04.241356 
Thu,09 Apr 2020.12:48:04.249104 Loading file /Palettes/Colour_Genie_S25.bin
Thu,09 Apr 2020.12:48:04.249292 
Thu,09 Apr 2020.12:48:04.256472 Loading file /Palettes/Dragon-CoCo.bin
Thu,09 Apr 2020.12:48:04.256611 
Thu,09 Apr 2020.12:48:04.263673 Loading file /Palettes/Dragon-CoCo_Emu.bin
Thu,09 Apr 2020.12:48:04.263843 
Thu,09 Apr 2020.12:48:04.270933 Loading file /Palettes/Dragon-CoCo_Full.bin
Thu,09 Apr 2020.12:48:04.271068 
Thu,09 Apr 2020.12:48:04.277894 Loading file /Palettes/MDA-Hercules.bin
Thu,09 Apr 2020.12:48:04.278089 
Thu,09 Apr 2020.12:48:04.284987 Loading file /Palettes/Mono_(2_level).bin
Thu,09 Apr 2020.12:48:04.285196 
Thu,09 Apr 2020.12:48:04.292376 Loading file /Palettes/Mono_(3_level).bin
Thu,09 Apr 2020.12:48:04.292592 
Thu,09 Apr 2020.12:48:04.299796 Loading file /Palettes/Mono_(4_level).bin
Thu,09 Apr 2020.12:48:04.300008 
Thu,09 Apr 2020.12:48:04.310912 Loading file /Palettes/Mono_(6_level).bin
Thu,09 Apr 2020.12:48:04.311155 
Thu,09 Apr 2020.12:48:04.313999 Loading file /Palettes/RGB.bin
Thu,09 Apr 2020.12:48:04.314262 
Thu,09 Apr 2020.12:48:04.319941 Loading file /Palettes/RGBI.bin
Thu,09 Apr 2020.12:48:04.320485 
Thu,09 Apr 2020.12:48:04.326365 Loading file /Palettes/RGBI_(CGA).bin
Thu,09 Apr 2020.12:48:04.326571 
Thu,09 Apr 2020.12:48:04.333118 Loading file /Palettes/RGBI_(Spectrum).bin
Thu,09 Apr 2020.12:48:04.333251 
Thu,09 Apr 2020.12:48:04.340080 Loading file /Palettes/RGBrgb_(Amstrad).bin
Thu,09 Apr 2020.12:48:04.340244 
Thu,09 Apr 2020.12:48:04.347255 Loading file /Palettes/RGBrgb_(Spectrum).bin
Thu,09 Apr 2020.12:48:04.347791 
Thu,09 Apr 2020.12:48:04.353761 Loading file /Palettes/RrGgBb_(EGA).bin
Thu,09 Apr 2020.12:48:04.353950 
Thu,09 Apr 2020.12:48:04.361211 Loading file /Palettes/Spectrum_48K_9Col.bin
Thu,09 Apr 2020.12:48:04.361706 
Thu,09 Apr 2020.12:48:04.373663 FOUND RESOLUTION: 1024x600@50Hz
Thu,09 Apr 2020.12:48:04.374135 
Thu,09 Apr 2020.12:48:04.376580 FOUND RESOLUTION: 1024x600@60Hz
Thu,09 Apr 2020.12:48:04.376719 
Thu,09 Apr 2020.12:48:04.379411 FOUND RESOLUTION: 1024x768@50Hz
Thu,09 Apr 2020.12:48:04.379611 
Thu,09 Apr 2020.12:48:04.382306 FOUND RESOLUTION: 1024x768@60Hz
Thu,09 Apr 2020.12:48:04.382427 
Thu,09 Apr 2020.12:48:04.385296 FOUND RESOLUTION: 1280x1024@50Hz
Thu,09 Apr 2020.12:48:04.385424 
Thu,09 Apr 2020.12:48:04.388274 FOUND RESOLUTION: 1280x1024@60Hz
Thu,09 Apr 2020.12:48:04.388389 
Thu,09 Apr 2020.12:48:04.391180 FOUND RESOLUTION: 1280x720@50Hz
Thu,09 Apr 2020.12:48:04.391298 
Thu,09 Apr 2020.12:48:04.394143 FOUND RESOLUTION: 1280x720@60Hz
Thu,09 Apr 2020.12:48:04.394383 
Thu,09 Apr 2020.12:48:04.397042 FOUND RESOLUTION: 1280x800@50Hz
Thu,09 Apr 2020.12:48:04.397233 
Thu,09 Apr 2020.12:48:04.399984 FOUND RESOLUTION: 1280x800@60Hz
Thu,09 Apr 2020.12:48:04.400243 
Thu,09 Apr 2020.12:48:04.402791 FOUND RESOLUTION: 1368x768@50Hz
Thu,09 Apr 2020.12:48:04.402919 
Thu,09 Apr 2020.12:48:04.405678 FOUND RESOLUTION: 1368x768@60Hz
Thu,09 Apr 2020.12:48:04.405799 
Thu,09 Apr 2020.12:48:04.408672 FOUND RESOLUTION: 1600x1200@50Hz
Thu,09 Apr 2020.12:48:04.408793 
Thu,09 Apr 2020.12:48:04.411666 FOUND RESOLUTION: 1600x1200@60Hz
Thu,09 Apr 2020.12:48:04.411804 
Thu,09 Apr 2020.12:48:04.414649 FOUND RESOLUTION: 1920x1080@50Hz
Thu,09 Apr 2020.12:48:04.414775 
Thu,09 Apr 2020.12:48:04.417632 FOUND RESOLUTION: 1920x1080@60Hz
Thu,09 Apr 2020.12:48:04.417759 
Thu,09 Apr 2020.12:48:04.420631 FOUND RESOLUTION: 1920x1200@50Hz
Thu,09 Apr 2020.12:48:04.420769 
Thu,09 Apr 2020.12:48:04.423606 FOUND RESOLUTION: 1920x1200@60Hz
Thu,09 Apr 2020.12:48:04.423722 
Thu,09 Apr 2020.12:48:04.426449 FOUND RESOLUTION: 640x480@50Hz
Thu,09 Apr 2020.12:48:04.426662 
Thu,09 Apr 2020.12:48:04.429280 FOUND RESOLUTION: 640x480@60Hz
Thu,09 Apr 2020.12:48:04.429537 
Thu,09 Apr 2020.12:48:04.432165 FOUND RESOLUTION: 720x576@50Hz
Thu,09 Apr 2020.12:48:04.432518 
Thu,09 Apr 2020.12:48:04.434870 FOUND RESOLUTION: 800x480@50Hz
Thu,09 Apr 2020.12:48:04.434998 
Thu,09 Apr 2020.12:48:04.437661 FOUND RESOLUTION: 800x480@60Hz
Thu,09 Apr 2020.12:48:04.437767 
Thu,09 Apr 2020.12:48:04.440463 FOUND RESOLUTION: 800x600@50Hz
Thu,09 Apr 2020.12:48:04.440541 
Thu,09 Apr 2020.12:48:04.443313 FOUND RESOLUTION: 800x600@60Hz
Thu,09 Apr 2020.12:48:04.443443 
Thu,09 Apr 2020.12:48:04.446124 FOUND RESOLUTION: Default@60Hz
Thu,09 Apr 2020.12:48:04.446284 
Thu,09 Apr 2020.12:48:04.448671 Loading file /config.txt
Thu,09 Apr 2020.12:48:04.448785 
Thu,09 Apr 2020.12:48:04.453470 Read resolution: 800x600@60Hz
Thu,09 Apr 2020.12:48:04.453619 
Thu,09 Apr 2020.12:48:04.456528 Match resolution: 24 800x600@60Hz
Thu,09 Apr 2020.12:48:04.456649 
Thu,09 Apr 2020.12:48:04.458008 Read scaling: 3
Thu,09 Apr 2020.12:48:04.458100 
Thu,09 Apr 2020.12:48:04.471031 Loading file: /Profiles/3BIT_RGB/Default.txt
Thu,09 Apr 2020.12:48:04.471153 
Thu,09 Apr 2020.12:48:04.520437 FOUND PROFILE: Atom
Thu,09 Apr 2020.12:48:04.520565 
Thu,09 Apr 2020.12:48:04.522695 FOUND PROFILE: BBC_Micro
Thu,09 Apr 2020.12:48:04.522781 
Thu,09 Apr 2020.12:48:04.525429 FOUND PROFILE: Camputers_Lynx
Thu,09 Apr 2020.12:48:04.525523 
Thu,09 Apr 2020.12:48:04.528141 FOUND SUB-FOLDER: Colour Test
Thu,09 Apr 2020.12:48:04.528228 
Thu,09 Apr 2020.12:48:04.530690 FOUND PROFILE: Colour_Genie
Thu,09 Apr 2020.12:48:04.530788 
Thu,09 Apr 2020.12:48:04.533270 FOUND PROFILE: Communicator
Thu,09 Apr 2020.12:48:04.533408 
Thu,09 Apr 2020.12:48:04.536320 FOUND PROFILE: Communicator_Mode7
Thu,09 Apr 2020.12:48:04.536405 
Thu,09 Apr 2020.12:48:04.538372 FOUND PROFILE: Custom
Thu,09 Apr 2020.12:48:04.538486 
Thu,09 Apr 2020.12:48:04.540559 FOUND PROFILE: Electron
Thu,09 Apr 2020.12:48:04.540683 
Thu,09 Apr 2020.12:48:04.542914 FOUND PROFILE: Master_128
Thu,09 Apr 2020.12:48:04.543005 
Thu,09 Apr 2020.12:48:04.545803 FOUND PROFILE: Master_128_24MHz
Thu,09 Apr 2020.12:48:04.545902 
Thu,09 Apr 2020.12:48:04.547673 FOUND PROFILE: Oric
Thu,09 Apr 2020.12:48:04.547781 
Thu,09 Apr 2020.12:48:04.549322 FOUND PROFILE: QL
Thu,09 Apr 2020.12:48:04.549446 
Thu,09 Apr 2020.12:48:04.551723 FOUND PROFILE: Station129
Thu,09 Apr 2020.12:48:04.551867 
Thu,09 Apr 2020.12:48:04.553911 FOUND PROFILE: Teletext
Thu,09 Apr 2020.12:48:04.554036 
Thu,09 Apr 2020.12:48:04.555757 FOUND PROFILE: ZX80
Thu,09 Apr 2020.12:48:04.555889 
Thu,09 Apr 2020.12:48:04.559208 Loading file /profile_3BIT_RGB.txt
Thu,09 Apr 2020.12:48:04.559344 
Thu,09 Apr 2020.12:48:04.563758 Setting profile to 13
Thu,09 Apr 2020.12:48:04.563883 
Thu,09 Apr 2020.12:48:04.572861 Loading file: /Saved_Profiles/3BIT_RGB/Station129.txt
Thu,09 Apr 2020.12:48:04.573353 
Thu,09 Apr 2020.12:48:04.578266 Setting subprofile to 0
Thu,09 Apr 2020.12:48:04.578386 
Thu,09 Apr 2020.12:48:04.580211 Profile = Station129
Thu,09 Apr 2020.12:48:04.580338 
Thu,09 Apr 2020.12:48:04.584609 Analyze Csync: polarity unchanged (non-inverted)
Thu,09 Apr 2020.12:48:04.584777 
Thu,09 Apr 2020.12:48:04.661533 Detected polarity state at startup = Comp (Separate H & V CPLD)
Thu,09 Apr 2020.12:48:04.661664 
Thu,09 Apr 2020.12:48:04.681200 Keycount = 0
Thu,09 Apr 2020.12:48:04.681332 
Thu,09 Apr 2020.12:48:04.685825 -----------------------LOOP------------------------
Thu,09 Apr 2020.12:48:04.685906 
Thu,09 Apr 2020.12:48:04.690235 Analyze Csync: polarity unchanged (non-inverted)
Thu,09 Apr 2020.12:48:04.690349 
Thu,09 Apr 2020.12:48:04.695271 Detected polarity state = 4, Comp (Separate H & V CPLD)
Thu,09 Apr 2020.12:48:04.695427 
Thu,09 Apr 2020.12:48:04.703213         clkinfo.clock = 12000000 Hz
Thu,09 Apr 2020.12:48:04.703359 
Thu,09 Apr 2020.12:48:04.705748      clkinfo.line_len = 768
Thu,09 Apr 2020.12:48:04.705916 
Thu,09 Apr 2020.12:48:04.708776     clkinfo.clock_ppm = 5000 ppm
Thu,09 Apr 2020.12:48:04.709071 
Thu,09 Apr 2020.12:48:04.730854     Nominal 100 lines = 6400000 ns
Thu,09 Apr 2020.12:48:04.731008 
Thu,09 Apr 2020.12:48:04.734001      Actual 100 lines = 6405229 ns
Thu,09 Apr 2020.12:48:04.734121 
Thu,09 Apr 2020.12:48:04.736988           Clock error = 817 PPM
Thu,09 Apr 2020.12:48:04.737203 
Thu,09 Apr 2020.12:48:04.740195  Error adjusted clock = 11990203 Hz
Thu,09 Apr 2020.12:48:04.740409 
Thu,09 Apr 2020.12:48:04.745442  Target PLL frequency = 2302119096 Hz, prediv = 1, PER = 4
Thu,09 Apr 2020.12:48:04.745566 
Thu,09 Apr 2020.12:48:04.748845  Actual PLL frequency = 2302119096 Hz
Thu,09 Apr 2020.12:48:04.748945 
Thu,09 Apr 2020.12:48:04.751204         GPCLK Divisor = 6
Thu,09 Apr 2020.12:48:04.751294 
Thu,09 Apr 2020.12:48:04.823215       Lines per frame = 625, (625)
Thu,09 Apr 2020.12:48:04.823326 
Thu,09 Apr 2020.12:48:04.829185 Actual frame time = 40032678 ns (interlaced), line time = 64052 ns
Thu,09 Apr 2020.12:48:04.829277 
Thu,09 Apr 2020.12:48:04.834811 Window: H = 63732 to 64372, V = 19916258 to 20116420, S = Comp
Thu,09 Apr 2020.12:48:04.834913 
Thu,09 Apr 2020.12:48:04.861986 Width or Height differ from last FB: Setting dummy 64x64 framebuffer
Thu,09 Apr 2020.12:48:04.862150 
Thu,09 Apr 2020.12:48:04.864536 Overscan L=0, R=0, T=0, B=0
Thu,09 Apr 2020.12:48:04.864692 
Thu,09 Apr 2020.12:48:04.896203 Initialised Framebuffer
Thu,09 Apr 2020.12:48:04.896376 
Thu,09 Apr 2020.12:48:04.899462 Size: 1296x288 (requested 1296x288)
Thu,09 Apr 2020.12:48:04.899683 
Thu,09 Apr 2020.12:48:04.901038 Pitch: 656 bytes
Thu,09 Apr 2020.12:48:04.901241 
Thu,09 Apr 2020.12:48:04.903848 Framebuffer address: DE000000
Thu,09 Apr 2020.12:48:04.904185 
Thu,09 Apr 2020.12:48:04.936388 RAM benchmark: Main memory = 801335 ns, Screen memory = 26339574 ns
Thu,09 Apr 2020.12:48:04.936712 
Thu,09 Apr 2020.12:48:16.929065 ***********************RESET***********************
Thu,09 Apr 2020.12:48:16.929327 
Thu,09 Apr 2020.12:48:16.930828 
Thu,09 Apr 2020.12:48:16.934193 8 bit board NOT detected
Thu,09 Apr 2020.12:48:16.934425 
Thu,09 Apr 2020.12:48:16.937182 Using PLLA as the sampling clock
Thu,09 Apr 2020.12:48:16.937420 
Thu,09 Apr 2020.12:48:16.940231 PLLA: 2400.000000 ANA1 = 00144000
Thu,09 Apr 2020.12:48:16.940450 
Thu,09 Apr 2020.12:48:16.947377 PLLA: PDIV=1 NDIV=62 CTRL=0002103e FRAC=524288 DSI0=256 CORE=2 PER=256 CCP2=256
Thu,09 Apr 2020.12:48:16.947637 
Thu,09 Apr 2020.12:48:16.950429 PLLB: 2000.000024 ANA1 = 00144000
Thu,09 Apr 2020.12:48:16.950654 
Thu,09 Apr 2020.12:48:16.957192 PLLB: PDIV=1 NDIV=52 CTRL=00021034 FRAC=87382 ARM=2 SP0=256 SP1=256 SP2=256
Thu,09 Apr 2020.12:48:16.957382 
Thu,09 Apr 2020.12:48:16.960363 PLLC: 2400.000000, ANA1 = 00144000
Thu,09 Apr 2020.12:48:16.960606 
Thu,09 Apr 2020.12:48:16.967574 PLLC: PDIV=1 NDIV=62 CTRL=0002103e FRAC=524288 CORE2=256 CORE1=256 PER=2 CORE0=2
Thu,09 Apr 2020.12:48:16.967793 
Thu,09 Apr 2020.12:48:16.970631 PLLD: 2000.000024 ANA1 = 00144000
Thu,09 Apr 2020.12:48:16.970826 
Thu,09 Apr 2020.12:48:16.977503 PLLD: PDIV=1 NDIV=52 CTRL=00021034 FRAC=87382 DSI0=256 CORE=4 PER=4 DSI1=256
Thu,09 Apr 2020.12:48:16.977728 
Thu,09 Apr 2020.12:48:16.980492 PLLH: 800.000006 ANA1 = 00144000
Thu,09 Apr 2020.12:48:16.980744 
Thu,09 Apr 2020.12:48:16.987687 PLLH: PDIV=1 NDIV=41 CTRL=00021029 FRAC=699051 AUX=256 RCAL=256 PIX=2 STS=527599
Thu,09 Apr 2020.12:48:16.987890 
Thu,09 Apr 2020.12:48:16.990766 PLLA: 2400.000000 ANA1 = 00144000
Thu,09 Apr 2020.12:48:16.990962 
Thu,09 Apr 2020.12:48:16.997924 PLLA: PDIV=1 NDIV=62 CTRL=0002103e FRAC=524288 DSI0=256 CORE=256 PER=4 CCP2=256
Thu,09 Apr 2020.12:48:16.998191 
Thu,09 Apr 2020.12:48:17.000791 CPU speed detected as: 1000 Mhz
Thu,09 Apr 2020.12:48:17.001073 
Thu,09 Apr 2020.12:48:17.002016 Keycount = 0
Thu,09 Apr 2020.12:48:17.002197 
Thu,09 Apr 2020.12:48:17.004122 CPLD  Design: 3BIT_RGB
Thu,09 Apr 2020.12:48:17.004351 
Thu,09 Apr 2020.12:48:17.005795 CPLD Version: 6.6
Thu,09 Apr 2020.12:48:17.006004 
Thu,09 Apr 2020.12:48:17.519636 EMMC: BCM2708 controller power-cycled
Thu,09 Apr 2020.12:48:17.519761 
Thu,09 Apr 2020.12:48:18.196286 
Thu,09 Apr 2020.12:48:18.203528 Loading file /Palettes/Atom_MKII_Full.bin
Thu,09 Apr 2020.12:48:18.203699 
Thu,09 Apr 2020.12:48:18.210959 Loading file /Palettes/Atom_MKII_Plus.bin
Thu,09 Apr 2020.12:48:18.211200 
Thu,09 Apr 2020.12:48:18.218535 Loading file /Palettes/Colour_Genie_N25.bin
Thu,09 Apr 2020.12:48:18.218762 
Thu,09 Apr 2020.12:48:18.226435 Loading file /Palettes/Colour_Genie_S24.bin
Thu,09 Apr 2020.12:48:18.226669 
Thu,09 Apr 2020.12:48:18.234319 Loading file /Palettes/Colour_Genie_S25.bin
Thu,09 Apr 2020.12:48:18.234534 
Thu,09 Apr 2020.12:48:18.241761 Loading file /Palettes/Dragon-CoCo.bin
Thu,09 Apr 2020.12:48:18.241964 
Thu,09 Apr 2020.12:48:18.248962 Loading file /Palettes/Dragon-CoCo_Emu.bin
Thu,09 Apr 2020.12:48:18.249243 
Thu,09 Apr 2020.12:48:18.256238 Loading file /Palettes/Dragon-CoCo_Full.bin
Thu,09 Apr 2020.12:48:18.256476 
Thu,09 Apr 2020.12:48:18.263168 Loading file /Palettes/MDA-Hercules.bin
Thu,09 Apr 2020.12:48:18.263426 
Thu,09 Apr 2020.12:48:18.270267 Loading file /Palettes/Mono_(2_level).bin
Thu,09 Apr 2020.12:48:18.270516 
Thu,09 Apr 2020.12:48:18.277678 Loading file /Palettes/Mono_(3_level).bin
Thu,09 Apr 2020.12:48:18.278157 
Thu,09 Apr 2020.12:48:18.285054 Loading file /Palettes/Mono_(4_level).bin
Thu,09 Apr 2020.12:48:18.285266 
Thu,09 Apr 2020.12:48:18.292464 Loading file /Palettes/Mono_(6_level).bin
Thu,09 Apr 2020.12:48:18.292686 
Thu,09 Apr 2020.12:48:18.299213 Loading file /Palettes/RGB.bin
Thu,09 Apr 2020.12:48:18.299424 
Thu,09 Apr 2020.12:48:18.305114 Loading file /Palettes/RGBI.bin
Thu,09 Apr 2020.12:48:18.305323 
Thu,09 Apr 2020.12:48:18.311552 Loading file /Palettes/RGBI_(CGA).bin
Thu,09 Apr 2020.12:48:18.311784 
Thu,09 Apr 2020.12:48:18.318445 Loading file /Palettes/RGBI_(Spectrum).bin
Thu,09 Apr 2020.12:48:18.318689 
Thu,09 Apr 2020.12:48:18.325729 Loading file /Palettes/RGBrgb_(Amstrad).bin
Thu,09 Apr 2020.12:48:18.325955 
Thu,09 Apr 2020.12:48:18.332446 Loading file /Palettes/RGBrgb_(Spectrum).bin
Thu,09 Apr 2020.12:48:18.332663 
Thu,09 Apr 2020.12:48:18.339141 Loading file /Palettes/RrGgBb_(EGA).bin
Thu,09 Apr 2020.12:48:18.339361 
Thu,09 Apr 2020.12:48:18.346393 Loading file /Palettes/Spectrum_48K_9Col.bin
Thu,09 Apr 2020.12:48:18.346577 
Thu,09 Apr 2020.12:48:18.358892 FOUND RESOLUTION: 1024x600@50Hz
Thu,09 Apr 2020.12:48:18.359076 
Thu,09 Apr 2020.12:48:18.361793 FOUND RESOLUTION: 1024x600@60Hz
Thu,09 Apr 2020.12:48:18.361940 
Thu,09 Apr 2020.12:48:18.364681 FOUND RESOLUTION: 1024x768@50Hz
Thu,09 Apr 2020.12:48:18.364810 
Thu,09 Apr 2020.12:48:18.367589 FOUND RESOLUTION: 1024x768@60Hz
Thu,09 Apr 2020.12:48:18.367734 
Thu,09 Apr 2020.12:48:18.370583 FOUND RESOLUTION: 1280x1024@50Hz
Thu,09 Apr 2020.12:48:18.370724 
Thu,09 Apr 2020.12:48:18.373602 FOUND RESOLUTION: 1280x1024@60Hz
Thu,09 Apr 2020.12:48:18.373902 
Thu,09 Apr 2020.12:48:18.376501 FOUND RESOLUTION: 1280x720@50Hz
Thu,09 Apr 2020.12:48:18.376740 
Thu,09 Apr 2020.12:48:18.379451 FOUND RESOLUTION: 1280x720@60Hz
Thu,09 Apr 2020.12:48:18.379576 
Thu,09 Apr 2020.12:48:18.382422 FOUND RESOLUTION: 1280x800@50Hz
Thu,09 Apr 2020.12:48:18.382738 
Thu,09 Apr 2020.12:48:18.385165 FOUND RESOLUTION: 1280x800@60Hz
Thu,09 Apr 2020.12:48:18.385302 
Thu,09 Apr 2020.12:48:18.388059 FOUND RESOLUTION: 1368x768@50Hz
Thu,09 Apr 2020.12:48:18.388175 
Thu,09 Apr 2020.12:48:18.390962 FOUND RESOLUTION: 1368x768@60Hz
Thu,09 Apr 2020.12:48:18.391092 
Thu,09 Apr 2020.12:48:18.393970 FOUND RESOLUTION: 1600x1200@50Hz
Thu,09 Apr 2020.12:48:18.394131 
Thu,09 Apr 2020.12:48:18.396919 FOUND RESOLUTION: 1600x1200@60Hz
Thu,09 Apr 2020.12:48:18.397018 
Thu,09 Apr 2020.12:48:18.399977 FOUND RESOLUTION: 1920x1080@50Hz
Thu,09 Apr 2020.12:48:18.400291 
Thu,09 Apr 2020.12:48:18.403061 FOUND RESOLUTION: 1920x1080@60Hz
Thu,09 Apr 2020.12:48:18.403430 
Thu,09 Apr 2020.12:48:18.406059 FOUND RESOLUTION: 1920x1200@50Hz
Thu,09 Apr 2020.12:48:18.406314 
Thu,09 Apr 2020.12:48:18.409230 FOUND RESOLUTION: 1920x1200@60Hz
Thu,09 Apr 2020.12:48:18.409370 
Thu,09 Apr 2020.12:48:18.411698 FOUND RESOLUTION: 640x480@50Hz
Thu,09 Apr 2020.12:48:18.411803 
Thu,09 Apr 2020.12:48:18.414509 FOUND RESOLUTION: 640x480@60Hz
Thu,09 Apr 2020.12:48:18.414624 
Thu,09 Apr 2020.12:48:18.417327 FOUND RESOLUTION: 720x576@50Hz
Thu,09 Apr 2020.12:48:18.417436 
Thu,09 Apr 2020.12:48:18.420124 FOUND RESOLUTION: 800x480@50Hz
Thu,09 Apr 2020.12:48:18.420223 
Thu,09 Apr 2020.12:48:18.423006 FOUND RESOLUTION: 800x480@60Hz
Thu,09 Apr 2020.12:48:18.423218 
Thu,09 Apr 2020.12:48:18.426149 FOUND RESOLUTION: 800x600@50Hz
Thu,09 Apr 2020.12:48:18.426580 
Thu,09 Apr 2020.12:48:18.428730 FOUND RESOLUTION: 800x600@60Hz
Thu,09 Apr 2020.12:48:18.429247 
Thu,09 Apr 2020.12:48:18.431380 FOUND RESOLUTION: Default@60Hz
Thu,09 Apr 2020.12:48:18.431490 
Thu,09 Apr 2020.12:48:18.433925 Loading file /config.txt
Thu,09 Apr 2020.12:48:18.434027 
Thu,09 Apr 2020.12:48:18.438751 Read resolution: 800x600@60Hz
Thu,09 Apr 2020.12:48:18.438917 
Thu,09 Apr 2020.12:48:18.441818 Match resolution: 24 800x600@60Hz
Thu,09 Apr 2020.12:48:18.441946 
Thu,09 Apr 2020.12:48:18.443306 Read scaling: 3
Thu,09 Apr 2020.12:48:18.443441 
Thu,09 Apr 2020.12:48:18.456327 Loading file: /Profiles/3BIT_RGB/Default.txt
Thu,09 Apr 2020.12:48:18.456448 
Thu,09 Apr 2020.12:48:18.505698 FOUND PROFILE: Atom
Thu,09 Apr 2020.12:48:18.505822 
Thu,09 Apr 2020.12:48:18.507956 FOUND PROFILE: BBC_Micro
Thu,09 Apr 2020.12:48:18.508092 
Thu,09 Apr 2020.12:48:18.510692 FOUND PROFILE: Camputers_Lynx
Thu,09 Apr 2020.12:48:18.510920 
Thu,09 Apr 2020.12:48:18.513401 FOUND SUB-FOLDER: Colour Test
Thu,09 Apr 2020.12:48:18.513517 
Thu,09 Apr 2020.12:48:18.515948 FOUND PROFILE: Colour_Genie
Thu,09 Apr 2020.12:48:18.517715 
Thu,09 Apr 2020.12:48:18.518536 FOUND PROFILE: Communicator
Thu,09 Apr 2020.12:48:18.518661 
Thu,09 Apr 2020.12:48:18.521592 FOUND PROFILE: Communicator_Mode7
Thu,09 Apr 2020.12:48:18.521687 
Thu,09 Apr 2020.12:48:18.523595 FOUND PROFILE: Custom
Thu,09 Apr 2020.12:48:18.523678 
Thu,09 Apr 2020.12:48:18.525792 FOUND PROFILE: Electron
Thu,09 Apr 2020.12:48:18.525961 
Thu,09 Apr 2020.12:48:18.528168 FOUND PROFILE: Master_128
Thu,09 Apr 2020.12:48:18.528288 
Thu,09 Apr 2020.12:48:18.531066 FOUND PROFILE: Master_128_24MHz
Thu,09 Apr 2020.12:48:18.532808 
Thu,09 Apr 2020.12:48:18.532959 FOUND PROFILE: Oric
Thu,09 Apr 2020.12:48:18.533018 
Thu,09 Apr 2020.12:48:18.534582 FOUND PROFILE: QL
Thu,09 Apr 2020.12:48:18.536102 
Thu,09 Apr 2020.12:48:18.536967 FOUND PROFILE: Station129
Thu,09 Apr 2020.12:48:18.537061 
Thu,09 Apr 2020.12:48:18.539182 FOUND PROFILE: Teletext
Thu,09 Apr 2020.12:48:18.539323 
Thu,09 Apr 2020.12:48:18.541019 FOUND PROFILE: ZX80
Thu,09 Apr 2020.12:48:18.541138 
Thu,09 Apr 2020.12:48:18.544495 Loading file /profile_3BIT_RGB.txt
Thu,09 Apr 2020.12:48:18.544650 
Thu,09 Apr 2020.12:48:18.549073 Setting profile to 13
Thu,09 Apr 2020.12:48:18.549227 
Thu,09 Apr 2020.12:48:18.558171 Loading file: /Saved_Profiles/3BIT_RGB/Station129.txt
Thu,09 Apr 2020.12:48:18.558444 
Thu,09 Apr 2020.12:48:18.563524 Setting subprofile to 0
Thu,09 Apr 2020.12:48:18.563646 
Thu,09 Apr 2020.12:48:18.565446 Profile = Station129
Thu,09 Apr 2020.12:48:18.565604 
Thu,09 Apr 2020.12:48:18.574351 Analyze Csync: polarity unchanged (non-inverted)
Thu,09 Apr 2020.12:48:18.574534 
Thu,09 Apr 2020.12:48:18.646785 Detected polarity state at startup = Comp (Separate H & V CPLD)
Thu,09 Apr 2020.12:48:18.646939 
Thu,09 Apr 2020.12:48:18.652546 Keycount = 0
Thu,09 Apr 2020.12:48:18.652654 
Thu,09 Apr 2020.12:48:18.657200 -----------------------LOOP------------------------
Thu,09 Apr 2020.12:48:18.657284 
Thu,09 Apr 2020.12:48:18.661632 Analyze Csync: polarity unchanged (non-inverted)
Thu,09 Apr 2020.12:48:18.661786 
Thu,09 Apr 2020.12:48:18.666603 Detected polarity state = 4, Comp (Separate H & V CPLD)
Thu,09 Apr 2020.12:48:18.666686 
Thu,09 Apr 2020.12:48:18.674576         clkinfo.clock = 12000000 Hz
Thu,09 Apr 2020.12:48:18.674722 
Thu,09 Apr 2020.12:48:18.677147      clkinfo.line_len = 768
Thu,09 Apr 2020.12:48:18.677314 
Thu,09 Apr 2020.12:48:18.680113     clkinfo.clock_ppm = 5000 ppm
Thu,09 Apr 2020.12:48:18.680243 
Thu,09 Apr 2020.12:48:18.702227     Nominal 100 lines = 6400000 ns
Thu,09 Apr 2020.12:48:18.702369 
Thu,09 Apr 2020.12:48:18.705370      Actual 100 lines = 6405213 ns
Thu,09 Apr 2020.12:48:18.705480 
Thu,09 Apr 2020.12:48:18.708286           Clock error = 814 PPM
Thu,09 Apr 2020.12:48:18.708483 
Thu,09 Apr 2020.12:48:18.711554  Error adjusted clock = 11990233 Hz
Thu,09 Apr 2020.12:48:18.711784 
Thu,09 Apr 2020.12:48:18.716811  Target PLL frequency = 2302124832 Hz, prediv = 1, PER = 4
Thu,09 Apr 2020.12:48:18.717011 
Thu,09 Apr 2020.12:48:18.720237  Actual PLL frequency = 2302124832 Hz
Thu,09 Apr 2020.12:48:18.720379 
Thu,09 Apr 2020.12:48:18.722700         GPCLK Divisor = 6
Thu,09 Apr 2020.12:48:18.722938 
Thu,09 Apr 2020.12:48:18.794949       Lines per frame = 625, (625.002)
Thu,09 Apr 2020.12:48:18.795104 
Thu,09 Apr 2020.12:48:18.800902 Actual frame time = 40032773 ns (interlaced), line time = 64052 ns
Thu,09 Apr 2020.12:48:18.800995 
Thu,09 Apr 2020.12:48:18.806530 Window: H = 63732 to 64372, V = 19916305 to 20116467, S = Comp
Thu,09 Apr 2020.12:48:18.806644 
Thu,09 Apr 2020.12:48:18.833730 Width or Height differ from last FB: Setting dummy 64x64 framebuffer
Thu,09 Apr 2020.12:48:18.833938 
Thu,09 Apr 2020.12:48:18.836240 Overscan L=0, R=0, T=0, B=0
Thu,09 Apr 2020.12:48:18.836362 
Thu,09 Apr 2020.12:48:18.867902 Initialised Framebuffer
Thu,09 Apr 2020.12:48:18.868088 
Thu,09 Apr 2020.12:48:18.870991 Size: 576x576 (requested 576x576)
Thu,09 Apr 2020.12:48:18.871211 
Thu,09 Apr 2020.12:48:18.872591 Pitch: 288 bytes
Thu,09 Apr 2020.12:48:18.872814 
Thu,09 Apr 2020.12:48:18.875368 Framebuffer address: DE000000
Thu,09 Apr 2020.12:48:18.875852 
Thu,09 Apr 2020.12:48:18.907956 RAM benchmark: Main memory = 801203 ns, Screen memory = 26364557 ns
Thu,09 Apr 2020.12:48:18.908418 
Here's the profile:

Code: Select all

sampling7=6,6,6,6,6,6,6,0,8,1,0,0
geometry7=156,26,480,256,576,288,3,4,1,4,12000000,768,5000,312,4,0,1
sampling=4,4,4,4,4,4,4,0,6,5,0,0
geometry=176,29,640,256,768,288,1,2,1,8,16000000,1024,5000,312,4,0,0
auto_switch=2
palette_control=1
screencap_size=0
Image

User avatar
BeebMaster
Posts: 3214
Joined: Sun Aug 02, 2009 5:59 pm
Location: Lost in the BeebVault!
Contact:

Re: RGB to HDMI using a Pi Zero and a small CPLD

Post by BeebMaster » Thu Apr 09, 2020 1:08 pm

Ahhh...I just tried a completely different card, a 128MB (yes, MB!) one and it's the same, no picture until reset. The Kingston one is a class 4 and I think the 128MB one even predates that system, so it probably is something to do with older or slower cards.
Image

User avatar
IanB
Posts: 538
Joined: Sun Sep 04, 2011 8:28 pm
Location: South Wales
Contact:

Re: RGB to HDMI using a Pi Zero and a small CPLD

Post by IanB » Thu Apr 09, 2020 2:54 pm

BeebMaster wrote:
Thu Apr 09, 2020 1:08 pm
Ahhh...I just tried a completely different card, a 128MB (yes, MB!) one and it's the same, no picture until reset. The Kingston one is a class 4 and I think the 128MB one even predates that system, so it probably is something to do with older or slower cards.
I think I manage to reproduce the problem, it looks like the internal HDMI registers produce an invalid size of 720x240 when HDMI is not connected or fully initialised.
I've added some code to reboot under such circumstances and that fixes it for me, can you try it:
kernelrpi.zip
(117.83 KiB) Downloaded 7 times

User avatar
BeebMaster
Posts: 3214
Joined: Sun Aug 02, 2009 5:59 pm
Location: Lost in the BeebVault!
Contact:

Re: RGB to HDMI using a Pi Zero and a small CPLD

Post by BeebMaster » Thu Apr 09, 2020 3:47 pm

Yes, that fixes it! It does a reboot then the picture appears.

Is it a "slow" card causing it then?
Image

User avatar
IanB
Posts: 538
Joined: Sun Sep 04, 2011 8:28 pm
Location: South Wales
Contact:

Re: RGB to HDMI using a Pi Zero and a small CPLD

Post by IanB » Thu Apr 09, 2020 4:17 pm

BeebMaster wrote:
Thu Apr 09, 2020 3:47 pm
Is it a "slow" card causing it then?
I assume it must be, the Pi is behaving like the HDMI lead is not connected on the first bootup. HDMI setup is controlled by the Pi firmware so there isn't much that can be done about it other than reboot to work around the problem.

wjnuk
Posts: 7
Joined: Sun Apr 19, 2020 6:42 pm
Contact:

Re: RGB to HDMI using a Pi Zero and a small CPLD

Post by wjnuk » Mon Apr 20, 2020 2:06 pm

Firstly may I add my appreciation and thanks to all the effort that has clearly gone into the design of this converter. I have built the 3 bit version and have an issue that I just can't seem to rectify. When first powered on the screen comes alive with the Blank CPLD detected message however the cursor to select the 3 bit firmware version is jumping around up and down. I have checked the CPLD is recognized correctly in Xilinx iMpact and I have also performed the wiring mod to carry out the firmware upload through the Pi. The pull down resistors are all in place and the switches have been checked to function correctly as well. I would be very grateful to anybody who could offer some assistance or advice.

User avatar
hoglet
Posts: 9091
Joined: Sat Oct 13, 2012 7:21 pm
Location: Bristol
Contact:

Re: RGB to HDMI using a Pi Zero and a small CPLD

Post by hoglet » Mon Apr 20, 2020 2:32 pm

wjnuk wrote:
Mon Apr 20, 2020 2:06 pm
Firstly may I add my appreciation and thanks to all the effort that has clearly gone into the design of this converter. I have built the 3 bit version and have an issue that I just can't seem to rectify. When first powered on the screen comes alive with the Blank CPLD detected message however the cursor to select the 3 bit firmware version is jumping around up and down. I have checked the CPLD is recognized correctly in Xilinx iMpact and I have also performed the wiring mod to carry out the firmware upload through the Pi. The pull down resistors are all in place and the switches have been checked to function correctly as well. I would be very grateful to anybody who could offer some assistance or advice.
This suggests that one of the GPIOs used for the switches is stuck low, or that the GPIO on the Pi is damaged.

The resistors associated with the switches are pull ups to 3.3V, not pull downs. Check the voltage on pins 35, 36 and 37 of the GPIO connector (these correspond to SW3, SW1 and SW2). It should be ~3.3V, dropping to 0v when the switch is pressed.

If you have already tested this, then the most likely problem is with the Pi itself.

I managed to damage a GPIO pin on a Pi by seperating the Pi from the hat whilst both were still connected up. The Beeb was powered off, and the TV was in standby, but still it broke (and it was one of the GPIOs uses for the switches, resulting in the same symptoms you seem to have).

I now *always* make sure I unplug the HDMI cable first. My point here is just that the GPIO pins on the Pi can be quite fragile.

Do you have a spare Pi you could try?

Dave

aotta
Posts: 247
Joined: Fri May 26, 2017 9:57 am
Location: Italy
Contact:

Re: RGB to HDMI using a Pi Zero and a small CPLD

Post by aotta » Mon Apr 20, 2020 2:51 pm

I had same issue too, but in my case was a bad soldering of CPLD pins 37, 38 or 39 that caused the switches crazily working.

wjnuk
Posts: 7
Joined: Sun Apr 19, 2020 6:42 pm
Contact:

Re: RGB to HDMI using a Pi Zero and a small CPLD

Post by wjnuk » Mon Apr 20, 2020 3:10 pm

Many thanks for the quick replies,
I have tried a different pi with the same result. My bad on the pull down remark. I'm was recalling from memory as I am at work and the unit is at home. I will try the other suggestions when I can and report back. Once again thank you for the advice.

User avatar
IanB
Posts: 538
Joined: Sun Sep 04, 2011 8:28 pm
Location: South Wales
Contact:

Re: RGB to HDMI using a Pi Zero and a small CPLD

Post by IanB » Mon Apr 20, 2020 3:16 pm

wjnuk wrote:
Mon Apr 20, 2020 2:06 pm
When first powered on the screen comes alive with the Blank CPLD detected message however the cursor to select the 3 bit firmware version is jumping around up and down.
As others have said, the likely cause is shorts or bad connections around the Pi header pins 35,36,37 or the CPLD pins 38,39,40 or bad connections on the pullup resistors R1,R2,R3. One other possibility is a damaged CPLD (caused by CMOS latchup on one of the above pins) as I had one like that once.

aotta
Posts: 247
Joined: Fri May 26, 2017 9:57 am
Location: Italy
Contact:

Re: RGB to HDMI using a Pi Zero and a small CPLD

Post by aotta » Mon Apr 20, 2020 3:26 pm

IanB wrote:
Mon Apr 20, 2020 3:16 pm
.... as I had one like that once.
Only one? you're a pro! i damaged dozens of CPLDs while soldering and testing my RGBtoHD... now i've got two 3bit and two 6bit working ones, but i also ordered some analog boards "smd soldering service" from a chinese supplier: those little ICs are too difficult for me!

wjnuk
Posts: 7
Joined: Sun Apr 19, 2020 6:42 pm
Contact:

Re: RGB to HDMI using a Pi Zero and a small CPLD

Post by wjnuk » Mon Apr 20, 2020 7:27 pm

So gpio pins 35 and 37 are 1.6v pin 36 is 3.3v Have checked again pins on cpld all looking good. All drop to 0v when buttons pushed.

User avatar
hoglet
Posts: 9091
Joined: Sat Oct 13, 2012 7:21 pm
Location: Bristol
Contact:

Re: RGB to HDMI using a Pi Zero and a small CPLD

Post by hoglet » Mon Apr 20, 2020 7:37 pm

wjnuk wrote:
Mon Apr 20, 2020 7:27 pm
So gpio pins 35 and 37 are 1.6v pin 36 is 3.3v Have checked again pins on cpld all looking good. All drop to 0v when buttons pushed.
1.6v is an ambiguous level, so something is wrong there.

What value resistors have you used for the pullups? Might be worth checking them with a meter.

Dave

wjnuk
Posts: 7
Joined: Sun Apr 19, 2020 6:42 pm
Contact:

Re: RGB to HDMI using a Pi Zero and a small CPLD

Post by wjnuk » Mon Apr 20, 2020 8:45 pm

Resistor values are correct both visually identified and with a multimeter. I removed them and still have 1.6v on the corresponding gpio pins. Guess I'm going to have to look into this deeper...... Thanks for everybody's help this far!

User avatar
IanB
Posts: 538
Joined: Sun Sep 04, 2011 8:28 pm
Location: South Wales
Contact:

Re: RGB to HDMI using a Pi Zero and a small CPLD

Post by IanB » Mon Apr 20, 2020 8:57 pm

wjnuk wrote:
Mon Apr 20, 2020 8:45 pm
Resistor values are correct both visually identified and with a multimeter. I removed them and still have 1.6v on the corresponding gpio pins. Guess I'm going to have to look into this deeper...... Thanks for everybody's help this far!
Can you post a hires closeup photo of the board?

wjnuk
Posts: 7
Joined: Sun Apr 19, 2020 6:42 pm
Contact:

Re: RGB to HDMI using a Pi Zero and a small CPLD

Post by wjnuk » Mon Apr 20, 2020 9:38 pm

Resistor values are correct both visually identified and with a multimeter. I removed them and still have 1.6v on the corresponding gpio pins. Guess I'm going to have to look into this deeper...... Thanks for everybody's help this far!
Attachments
IMG_20200418_164544.jpg

User avatar
IanB
Posts: 538
Joined: Sun Sep 04, 2011 8:28 pm
Location: South Wales
Contact:

Re: RGB to HDMI using a Pi Zero and a small CPLD

Post by IanB » Mon Apr 20, 2020 10:21 pm

wjnuk wrote:
Mon Apr 20, 2020 9:38 pm
Resistor values are correct both visually identified and with a multimeter. I removed them and still have 1.6v on the corresponding gpio pins. Guess I'm going to have to look into this deeper...... Thanks for everybody's help this far!
The soldering on pins 25 and 29 of the GPIO header looks a bit suspect but I don't think that could cause your problem. Also the CPLD pins look a little misaligned with the PCB especially along the bottom so you might want to check for shorts between adjacent CPLD pins.

You could try isolating pins 39 and 40 of the CPLD (follow the tracks from R2 and R3 to those pins). The switches don't actually need to be connected to the CPLD as that was only used in early prototype CPLD designs so you could either lift up those two legs with a pin or needle and soldering iron or you could just cut the tracks to them adjacent to the pins. This would eliminate a defective or incorrectly programmed CPLD as the source of the problem.

aotta
Posts: 247
Joined: Fri May 26, 2017 9:57 am
Location: Italy
Contact:

Re: RGB to HDMI using a Pi Zero and a small CPLD

Post by aotta » Tue Apr 21, 2020 5:36 pm

I discovered that Olivetti Prodest PC1 has a standard CGA video port, so i tested RGBtoHD 6bit with it, and working with some adjustement from standard CGA.
That's the profile i used:
Olivetti Prodest-PC1.txt
(122 Bytes) Downloaded 5 times
Edit: forgot to mention i used same cable made for the C-128 80 columns mode

And a couple of screenshots:
capture1.png
capture2.png

wjnuk
Posts: 7
Joined: Sun Apr 19, 2020 6:42 pm
Contact:

Re: RGB to HDMI using a Pi Zero and a small CPLD

Post by wjnuk » Sun Apr 26, 2020 3:43 pm

IanB wrote:
Mon Apr 20, 2020 10:21 pm
wjnuk wrote:
Mon Apr 20, 2020 9:38 pm
Resistor values are correct both visually identified and with a multimeter. I removed them and still have 1.6v on the corresponding gpio pins. Guess I'm going to have to look into this deeper...... Thanks for everybody's help this far!
The soldering on pins 25 and 29 of the GPIO header looks a bit suspect but I don't think that could cause your problem. Also the CPLD pins look a little misaligned with the PCB especially along the bottom so you might want to check for shorts between adjacent CPLD pins.

You could try isolating pins 39 and 40 of the CPLD (follow the tracks from R2 and R3 to those pins). The switches don't actually need to be connected to the CPLD as that was only used in early prototype CPLD designs so you could either lift up those two legs with a pin or needle and soldering iron or you could just cut the tracks to them adjacent to the pins. This would eliminate a defective or incorrectly programmed CPLD as the source of the problem.
Just a quick update. I had chance this weekend to isolate pins 39 and 40. This did the trick. Cursor now behaving and CPLD programmed through pi fine. Everything now works flawlessly. Thank you so much for the suggestions. I got there in the end with a little help! The whole family are loving it.
Attachments
MVIMG_20200424_115929.jpg

Post Reply

Return to “8-bit acorn hardware”