Techknight,
Great work, and good timing. I've been working toward the same thing for an LCD replacement: a card in the ROM slot that answers as Apple's backlight card, so the stock Portable control panel shows Screen Brightness and I can control my LCD replacement brightness as well as control power. A few questions on how you handled it:
- Which ID do you return at $FC0200: A3, A5 or AD? In MAME, A3 jumped back to Max after sleep, but A5 kept the level.
- Are you in the ROM slot (J10)? Do you decode only on address + AS* and drive only D8–D15 for the ID read?
- Does the GLU supply DTACK for $FC0200, or did you have to generate it?
- Do you count the /INC, U/D and /CS pulses and clamp to a range? How do you handle the long run to the end stop?
- On wake, does the driver resend the level, or does your board hold it? Does Off or sleep power the panel down?
- Any plans to publish the CPLD equations?
I see you're running 9 MB too. Which RAM card is that, and does it need its own DTACK wire? Did fitting your backlight emulation in the ROM slot interfere with the RAM card at all, especially the top megabyte?
Thanks
campbellashe
Hello there local Ashevilleian!
1. Returning $A5 because this card is universal. itll work in the backlit or non backlit machine. I don't have a functional backlit at the moment to try it. theyre a bit rare and pricey.
2. Yep, its in the ROM slot, and the CPLD code is emulating the original backlit upgrade card but modified to use $A5 and its brightness curve. they DIFFER. 50 steps vs 80 steps of the pot. There is a jumper on the card to turn it into a listen-only when it is in a 5126.
3. GLUE provides dtack for anything in slot space.
4. Yep, all that is done in the pico. Be warned that $A5 and $A3 are different in the number of steps AND polarity of the Up/Down signal. Look at the supermario source leak, thats what I did.
5. I dont sleep a Portable. I either shut it down or etc. I invented my own sleep methods for the display itself, itll dim the display and then put the display itself to sleep while leaving the portable running. Brightness is restored to wherever it was when last sent. however, Brightness is volatile, and is set to max when first powered up because Apple loves to ramp it all the way at the bottom on shutdown/reboot or PRAM loss. I have a minimum floor in the code so the display cannot go 100% blank even though apple is forcing it to on first-boot or shutdown with garbage PRAM settings. That is the biggest flaw of the .Backlight driver.
6. Probably here soon.