The ZX-40p is a powerful microcontroller for your home automation, industrial control, robotics
or other embedded systems application.
It is the 40-pin DIP cousin of the ZX-24p that provides 7 additional I/O pins, lower cost and more design flexibility
making it an excellent choice for serious hobbyists, experimenters and small system builders.
And, it's source code-compatible (with the execption of some internal register names) with the NetMedia BX-35 but
it has more capabilities and much higher speed.
The ZX-40p also features improved ATN circuitry that prevents your program from interfering with the downloading process.
Except for the improved ATN circuitry the ZX-40p is pin-compatible with the BX-35 DIP.
To use the ZX-40p you'll need a regulated voltage source (4.5 to 5.5VDC), a 14.7456MHz crystal, a serial EEPROM (e.g. 32K byte Atmel AT25256A),
and a few additional interface components.
You may download a schematic with suggested support circuitry for the ZX-40p (identical to that of the ZX-40a) as a PDF
or as an ExpressPCB .sch file.
To view the latter, you'll have to download free software from
ExpressPCB.
ZX-40p Technical Features¹
Package |
40-pin DIP |
Operating Temperature |
-40 to +85°C |
Processor |
Atmel AVR ATmega644P |
Power Requirements |
4.5 to 5.5VDC regulated at 200mA |
Processor Speed |
Up to 14.7MIPS (14.7MHz) |
Program Execution Speed |
Up to 175,000 instructions/sec² |
User RAM |
3456 bytes |
Non-volatile Data Memory |
2016 bytes |
Program Memory |
Up to 64K bytes (16000+ instructions) |
Digital I/O pins |
26+2³ |
Analog-to-Digital Channels |
Up to 8 channels, 10-bit resolution |
PWM Channels |
Two 16-bit |
I2C Support |
1 HW channel, 4 SW channels |
1-Wire Support |
Bit and byte level |
SPI Support |
4 HW channels |
Synchronous Serial I/O Support |
1-16 bits, MSB or LSB first |
Asynchronous Serial I/O Ports |
2-HW, up to 4 SW full duplex |
X-10 Command Support |
Yes |
Multi-tasking Support |
Yes |
External Interrupts |
3 |
Pin Change Interrupts |
All I/O lines |
Analog Comparator Interrupt |
Yes |
Interval Timer |
Yes |
Exception Handling Support |
Yes |
Floating Point Math |
Yes - IEEE 32-bit |
Advanced Floating Point
Functions (sin, cos, log, etc.) |
System Level |
Programming Interface |
Serial - 115.2K baud |
Field Upgradeable System Software |
Yes |
Notes:
1) Items in boldface indicate differences from the ZX-40a.
2) Speed based on the instruction b = b + 1 with stack checking disabled.
3) The additional 2 I/O lines dedicated for serial I/O.
4) SW means implemented in system software, HW means hardware implementation.
Specifications subject to correction and change without notice.
|
A standard serial port is required to download code to the ZX-40p.
If your computer does not have a standard 9-pin serial port but does have a USB port, you may use a USB to serial adapter.
Note, however, that some USB to serial adapters are too slow to be useful with the ZX microcontrollers.
We have found that adapters based on the second generation FTDI chips seem to work well.
The ZBasic IDE, compiler and documentation may be obtained free of charge via the Download page. See the menu at the left.