Grilled Cheese

ExploreLog inSign up
Terms of UsePrivacy PolicyCommunity StandardsHelpGet the app

Grilled Cheese is a product of Village Compute

Version devBuilt at: 2026-12-03 22:42:33 EST

PhotosVideosAllPeople
LatestRanked
@trex2903.bsky.socialNov 24, 2026, 3:27 PM

New issue 👍 #freeze64 #c64 #c65 @freeze64.bsky.social

Photo, no description
@paulfoerster.swiss.social.ap.brid.gyNov 14, 2026, 10:38 PM

Does anybody know what happened to this promising great project?

https://c65gs.blogspot.com/2024/01/working-on-expansion-board-user-port.html

#MEGA65 #C65 #C64 #Commodore64 #Commodore

c65gs.blogspot.comWorking on the Expansion Board: User-Port bring-up and other bits and piecesIn the last blog post, I got the tape port working, which was nice. Now to get the user port working, and also deal with a number of other bits and pieces that need attacking. First, I have added de-coupling capacitors to all the ICs in the schematic and PCB design, since they should be used, even though I have tested the board fine without them. Anyway, let's get testing the user port data lines... and nothing shows up. At least one problem was that the CIA data direction register is active high, while the expansion board uses active-low. So I have fixed that, which requires a resynthesis. With that, I am able to set the data lines. To test reading them I really need a user port connector so that I can rig up a switch or something. But in the absence of that I am probing the lines using a jumper wire, and I can see the input value change, but because of the lack of pull-ups it's a bit wonky, because once the lines are left floating they can settle on whatever they like. But it looks like they work. The other lines that I need to test are: RESET (output and input) ATN (output) PA2 (output and input) CNT1 (output and input) SP1 (output and input) CNT2 (output and input) SP2 (output and input) PC2 (output) FLAG2 (input) Starting with the RESET line, this one is a bit tricky because it's bi-directional: We want the MEGA65 to pull it low when the system is reset, but we also want external devices to be able to trigger reset by pulling it low. The trouble comes because the reset line isn't really connected to the reset line of the MEGA65, so we have to fake it, and know when we are faking pulling it low, so that we know not to read it. This also has to handle the latency of the expansion board controller. So the logic looks something like this: -- Export RESET generated by MEGA65 to the userport user_port_o.reset <= reset; -- But when doing so, ignore the RESET pin's value on the -- user port, as otherwise once reset were triggered, you -- wouldn't be able to release it. -- Because of the latency of the user port reading, we need -- to remember that /RESET has been asserted for a while. -- User port scans at a rate of ~150KHz, so at 40.5MHz this means we need -- to remember it for ~270 cycles. We'll do 1,000 to be sure if reset='1' then if cycles_since_reset = 1000 then reset_out_user_port <= user_port_i.reset_n; else cycles_since_reset <= cycles_since_reset + 1; reset_out_user_port <= '1'; end if; else cycles_since_reset <= 0; reset_out_user_port <= '1'; end if; reset_out <= reset_out_keyboard and reset_out_user_port; That'll need a resynthesis to test, as will the ATN line, that needs to be connected to the IEC ATN signal from the CIA. I could also connect it to the ATN line of the hardware IEC accelerator that is being added to the MEGA65, but it doesn't really make sense, since the rest of the IEC lines are not exposed on the user port, and it would be a bit of a pain in the bum to plumb it through. So instead, the user port ATN line will just follow the CIA line for it. Okay, resynthesis is done, and the RESET pin works in both directions: If you hold the reset button on the MEGA65, /RESET on the user port goes to 0V, and if you temporarily ground /RESET on the user port, the MEGA65 resets -- and then when you release it, it continues to boot as it should -- so that fancy logic works... provided the expansion board is fitted. The ATN line works, but has reversed sense, so I'll have to fix that: Done and confirmed fixed. The PA2 line should be easier, because that's just bit 2 of $DD00 / $DD02, so should be quite easy to test. Except it seems that I have totally stuffed it up in the schematic: The data-direction bit for it is not even connected, nor is the output value. It does work for input, though. So I need to fix the schematic, and then also fix the connection to drive the output in the expansion board ring controller. The trouble is that I don't have 2 spare outputs, only 1. What I will do to work
@paulfoerster.swiss.social.ap.brid.gyOct 27, 2026, 8:56 PM

The #MEGA65 has gotten an update! A #macOS universal binary is now available. It works on #AppleSilicon #Macs without #Rosetta, rendering my (temporary) build script obsolete again. 🤣

Thanks so much lgb! 🙏🤣

https://github.lgb.hu/xemu/

#macOS #AppleSilicon #Macs #Rosetta #Commodore #C65 #Emulation

A shell script to download, build and install xmega65:

$ cat mkxmega65 
#!/bin/zsh

cd
git clone https://github.com/lgblgblgb/xemu.git
cd xemu/targets/mega65
make
cd
mv ~/xemu/build/bin/xmega65.native ~/bin/xmega65
rm -rf xemu