Main > Monitor/Video Forum

The ultimate VGA to SCART adapter

<< < (8/16) > >>

buttersoft:
Hah, i figured it out. I stupidly followed a tutorial and it was doing the wrong thing!

Thanks though, i'll change to 740 and give it a run :)

EDIT: And now it seems my PIC's are on backorder until November :( Any chance there's another PIC the code can be programmed to? Or without too much trouble...

I have to admit all i did to compile was copy-paste-all from your main.c file. All i changed was the countdown duration, to 740, and my hexfile looks different to yours! It gives me a warning too, abhout an arithmetic overflow on line 78 ( NCO1INCL=NCO_increment;). Any ideas what i might be doing wrong there?

gambaman:

--- Quote from: buttersoft on July 31, 2020, 06:39:55 am ---EDIT: And now it seems my PIC's are on backorder until November :( Any chance there's another PIC the code can be programmed to? Or without too much trouble...

--- End quote ---

The previous version uses a PIC10F320/322. Does it suit you?


--- Quote from: buttersoft on July 31, 2020, 06:39:55 am ---I have to admit all i did to compile was copy-paste-all from your main.c file. All i changed was the countdown duration, to 740, and my hexfile looks different to yours!

--- End quote ---

Click on File->Project Properties and check that the selected device is PIC16F18313.


--- Quote from: buttersoft on July 31, 2020, 06:39:55 am ---It gives me a warning too, abhout an arithmetic overflow on line 78 ( NCO1INCL=NCO_increment;). Any ideas what i might be doing wrong there?

--- End quote ---

It is OK. It warns you because the constant NCO_increment does not fit in NCO1INCL so only the 8 least significant bits will be written there. It is the wanted beahaviour. Note that the other bits are previously stored in NCO1INCH and NCO1INCU.

buttersoft:
baritonomarchetto I made a big mistake! IT doesn't look like the TL866 can program the PIC16F18313. I'm going to have to grab that one Gambaman recommended, i think.

gambaman:

--- Quote from: buttersoft on August 25, 2020, 06:13:15 am ---baritonomarchetto I made a big mistake! IT doesn't look like the TL866 can program the PIC16F18313. I'm going to have to grab that one Gambaman recommended, i think.

--- End quote ---
I'm sorry to hear that. Was it very expensive?

buttersoft:
About $25 AUD. I grabbed the exact one you linked to as it seemed to come with the better ZIF-socket adapter. I couldn't use the other PIC10 chip in your simpler adapter either, i'd need the programmer for that too. The worst part is waiting 6 weeks for it to arrive :/ I do plan to make a few of these SCART adapters, and play around with the design. And i'm sure i'll want to program something else in future.

I'm still a bit overwhelmed by MPLAB X IDE though, but i think all i need to do is import the .hex file, then build the project, using the programmer as the device. The target IC being a PIC16F18313 should already be set up, yes?

Also, i was half planning to use this for the MiSTer. Do you know if the H-sync input for the PIC16F18313 will pass composite sync through? Does it depend on what the v-sync port is doing as well?

Also, great avatar! I have to steal that picture :)

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version