|
|
| Author |
Message |
zbasicandy
Joined: 26 Jan 2006
Posts: 193
|
|
Posted: 15 March 2006, 21:07 PM Post subject: Runtime code on Zchips |
|
|
I am planning to use your ZX-40 and ZX-44 chips. The ZX-40 can be socketed and the ZX-44 cannot e.g surface mount. Changes in the runtime
code would mean changes in the code on the chip? At what point, do you ever change the code on the chip? What is in this code? Adding new instructions/functions would require new code updates on the chip? |
|
| Back to top |
|
 |
dkinzer Site Admin
Joined: 03 Sep 2005
Posts: 2499
Location: Portland, OR
|
|
Posted: 16 March 2006, 3:52 AM Post subject: |
|
|
I don't think that I understand what you're asking. Here is some information that may clarify the situation:
The ZX Virtual Machine is implemented in firmware on the AVR CPU chip. The firmware is modified as necessary to fix errors and to add new capabilities. The firmware can be updated with the ZX-40 or ZX-44 installed in your device as long as the Rx, Tx and ATN lines are available. It would, therefore, be advisable to design your system so that a serial cable can be connected to it to, allowing either the firmware or your software to be updated.
If this doesn't answer your question, perhaps it could be rephrased in light of this information. |
|
| Back to top |
|
 |
zbasicandy
Joined: 26 Jan 2006
Posts: 193
|
|
Posted: 16 March 2006, 12:26 PM Post subject: Runtime code on Zchips |
|
|
| The code on the ZX-xx chip is only a "bootloader" for your flash memory upgrades and I need not to worry about pulling the "surface mount" chip off the board for "special updates"? |
|
| Back to top |
|
 |
dkinzer Site Admin
Joined: 03 Sep 2005
Posts: 2499
Location: Portland, OR
|
|
Posted: 16 March 2006, 15:27 PM Post subject: |
|
|
| Quote: | | The code on the ZX-xx chip is only a "bootloader" for your flash memory upgrades... |
The firmware on the ZX chip has two distinct parts - the virtual machine and the bootloader. The VM is an interpreter that executes the code generated by the ZBasic compiler while the bootloader performs firmware updates on the VM.
| Quote: | | ...and I need not to worry about pulling the "surface mount" chip off the board for "special updates"? |
That is true as long as you make provisions to attach a serial cable to the TxD, RxD, DTR and ground lines.
It may help to think of the ZX-24 as a simple application that is based on the ZX-44. Since it makes the above mentioned serial lines available, the firmware on the CPU chip can be updated in the field. |
|
| Back to top |
|
 |
|