CINXE.COM

x49gp - The HP49g+ Emulator

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd"> <html> <head> <title>x49gp - The HP49g+ Emulator</title> <link rel="icon" href="../images/ecd-16.png" type="image/png"> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <meta name="author" content="Eddie C. Dost"> <meta name="generator" content="vi"> <meta name="copyright" content="(C) 2006 Eddie C. Dost"> <meta name="description" content="HP49g+ Emulator Homepage"> <meta name="abstract" content="HP49g+ Emulator Homepage"> <meta name="keywords" content="HP49g+, x49gp, HP Calculator, Emulator"> <meta name="revisit-after" content="7 days"> <meta name="robots" content="index, follow"> </head> <body bgcolor="white"> <table border="0" width="100%" cellspacing="0" cellpadding="20"> <tr valign="top"> <td width="50%" align="left"> <!-- Left Column --> <h3>x49gp - The HP49g+ Emulator</h3> The HP49g+ and HP50g emulator is available on <a href="http://x49gp.sourceforge.net/">x49gp.sourceforge.net</a>. Please look there for updates and downloads. <p> A few weeks ago I started to look at my HP49g+ again, mainly because I read about <a href="http://hpgcc.org/">HP-GCC</a> and wanted to play with C Programs on the calculator. I owned the calculator for years, but it could never replace my HP48gx, due to the "algebraic" keyboard layout and the unusable keyboard mechanics. Having written an emulator for the HP48 series of calculators, I do not want to miss the ability to debug code on my workstation, with all the nice features like breakpoints, traces, and looking at internal registers... <p> Searching the internet showed some work being done on an HP49g+ emulator <a href="http://lebonpoint.chez-alice.fr/hp49gp/reverse.htm">(see here)</a>, but the project seems dead since mid 2004. <p> <b>2007/01/04</b> The sourceforge project is accepted. I am now waiting for my CVS repository to be installed on the sourceforge CVS server. <p> <b>2007/01/03</b> A lot of things work... Except my time to really get this done. Today I finally got around requesting registration as a sourceforge project. This will soon be open to helping hands and for initial reviews. <p> The emulator now can completely safe it's internal state (ARM core and S3C2410 stuff) and recover from a saved state. Everything except the nifty keyboard colors also works when emulating the HP50g (Just need the boot image from start of FLASH and everything is set). <p> <b>2006/07/17</b> More UI Button work... Replaced all text from the scanned image by own fonts to make it more readable. This will allow for custom labels everywhere one day.<br> Next I need to separate the UI handling and the actual emulation into two threads, after that I make this available as a test release. <p> <b>2006/07/04</b> Timer reimplementation is done, timers run correctly synchronized to PCLK now. IrDA connectivity is resolved, the Tx LED is connected to both UART2 TxD and SPIMOSI0. The HP49g+ uses SPI to simulate the printer protocol, using two SPI byte transmits for every bit sent to the printer and the watchdog timer in interval timer mode for the timing. No DMA used here, this is real low tech. The more I discover about the internals, the more I get disapointed. There is no sign of descent engineering found inside. It's all chineese low tech. It stinks when you open it. Bill and Dave are turning over in their graves. <p> <b>2006/06/22</b> Great news: The emulator just ran it's first gcc compiled program. This means a few things: Thumb instruction emulation works. The MMU page table walk works (Standard HP firmware only uses section address translation, which does not put to much pressure on the MMU). The saturn subsystem seems to be working very well, libraries and ports are fine, as I installed the ARMToolbox in port 2 and used that to run the above mentioned programm. Still need to do timer reimplementation, so this is next. <p> <b>2006/06/19</b> Timers need reimplementation, the current timers only work correctly with respect to interrupts on timeout, but are not exact when polled. This seems to confuse the firmware somewhat. Now the good news: Power on after power off is working, the firmware sets bit 3 in CLKCON, this needs to go into power off and wake up with power on reset. FLASH erase and write is also working now, so the calculator passes the builtin FLASH write test. <p> <b>2006/06/18</b> After implementing timers, RTC, interrupts, I/O ports (for the keyboard), basic LCD support, internal SRAM, external SRAM, read access to the external FLASH, and a basic GUI the calculator finally boots into user mode. There are still many issues to fix, currently it turns off after some time and loops somewhere with ARM interrupts disabled, so it wont turn on again. The GUI is very basic (as you can see). I use <a href="http://www.gtk.org">GTK+ 2.0</a> as toolkit, so the emulator can easily be ported to M$ Windows when development has stabilized. Anyway: <b>first light!</b> <p> <b>2006/06/11</b> Well, why not do it from scratch. The code will be available under GPL, to emulate the ARM core I use the ARM simulator that comes with <a href="http://www.gnu.org/software/gdb/">GNU gdb</a>. Main work is emulating the many embedded modules in the HP49g+'s processor, a <a href="http://www.samsung.com/products/semiconductor/MobileSoC/ApplicationProcessor/ARM9Series/S3C2410/S3C2410.htm">Samsung S3C2410</a>. I also had to add an MMU to the simulator, as the ARM MMU is not standardized, but specific to the implementation of the chip. <p> <b>Thanks go to the following people (in no particular order), who supported the project with information or provide information on the HP49g+ on the internet (please drop me a note, if you feel I have missed you on this list):</b> <p> Cyrille de Brebisson,<br> Tim Wessman,<br> Jean-Yves Avenard,<br> Steve Sousa,<br> Al Borowski,<br> The HP-GCC Team. </td> <td width="50%" align="center"> <!-- Right Column --> <img src="x49gp.gif" alt="x49gp"> <p> x49gp running on my UltraSPARC. </td> </tr> </table> <table width="100%" cellspacing="0" cellpadding="5" border="0"> <tr> <td colspan="3" align="center"> <hr noshade size="1"> <small>I am not responsible for the content of any web pages linked to from this document which are not explicitly marked as being authored by me.</small> <hr noshade size="1"> </td> </tr> <tr> <td align="left" valign="top" width="30%"> <table cellspacing="0" cellpadding="2" border="0"> <tr valign="top"> <td align="left"> <a href="&#109;&#97;&#105;&#108;&#116;&#111;&#58;&#101;&#99;&#100;&#64;&#98;&#114;&#97;&#105;&#110;&#97;&#105;&#100;&#46;&#100;&#101;"><small>&#101;&#99;&#100;&#64;&#98;&#114;&#97;&#105;&#110;&#97;&#105;&#100;&#46;&#100;&#101;</small></a> </td> </tr> <tr valign="top"> <td align="left"> <small>50&deg;44'N&nbsp;&nbsp;&nbsp;006&deg;00'E</small> </td> </tr> <tr valign="bottom"> <td align="left"> <small>&nbsp;</small> </td> </tr> </table> </td> <td align="center" valign="top" width="40%"> <table cellspacing="0" cellpadding="5" border="0"> <tr> <td> <a href="http://www.vim.org"><img src="../images/vi.gif" border="0" alt="created with vi"></a> </td> <td> <a href="http://validator.w3.org/check?uri=referer"><img border="0" src="../images/valid-html401.gif" alt="Valid HTML 4.01!"></a> </td> <td> <a href="http://www.opensource.org"><img src="../images/msfree.gif" border="0" alt="100% Micro$oft free"></a> </td> </tr> </table> </td> <td align="right" valign="top" width="30%"> <table cellspacing="0" cellpadding="1" border="0"> <tr valign="top"> <td align="right"> <small>$Date: 2006/06/18 08:16:09 $</small> </td> </tr> <tr valign="bottom"> <td align="right"> <img src="../cgi-bin/counter?name=x49gp" border="0" alt=""> </td> </tr> </table> </td> </tr> </table> </body> </html>

Pages: 1 2 3 4 5 6 7 8 9 10