DS1202 Platform
Hardware Devices Covered by This Platform
- DS1202 programmable serial controller.
Memory Space and Key Info
RAM |
22,271 bytes for application variables and data |
Flash |
983,040 bytes for application and data storage (shared flash memory) |
EEPROM |
2,040 bytes for application data |
16-bit platform |
|
Clock frequency (CLOCK) and clock control |
PLL on (default): 88.4736Mhz PLL off: 11.0592Mhz |
Available network interfaces |
|
Unidirectional(2) |
|
UART limitations |
Maximum practical baudrate of ~921,600bps |
16 bytes for TX, 16 bytes for RX |
|
Depends on the serial port mode |
|
Independent |
|
Supported(3) |
|
ADC |
NO |
Pulse-width Modulation (PWM) |
NO |
GA1000 support |
No |
WA2000 support |
No |
This platform does not support Wi-Fi at all |
|
beep.divider calculation |
N/A (buzzer not provided) |
Recommended buzzer frequency divider |
N/A (buzzer not provided) |
Display not supported |
|
28 bytes for MAC and device password storage |
|
128 bytes: 64 OTP bytes + 64 fixed bytes(4) |
|
Shared |
|
Self-upgrades for Tibbo BASIC/C applications |
Supported through the fd.copyfirmware, fd.copyfirmwarelzo, and fd.copyfirmwarefromfile methods |
Two green status (SG) LEDs (side and top) Two red status (SR) LEDs (side and top) Yellow Ethernet status (EY) LED Green Ethernet status (EG) LED |
|
Ethernet / UDP Broadcast transport Ethernet / WinPCap transport |
- The sock.allowedinterfaces property refers to the Ethernet interface as "NET," PPP as "PPP," and PPPoE as "PPPOE." The sock.targetinterface and sock.currentinterface properties rely on the pl_sock_interfaces enum, whose members differ depending on the platform.
- Surrounding board hardware dictates which GPIO lines must be used as inputs and which as outputs.
- The hardware of this platform supports serial channels, which means that the CTS/RTS and DTR/DSR pairs of the DB9 connector can also be used as the RX/TX pairs of additional serial channels. Therefore, it is up to you to decide which lines are used as RTS and CTS, and which channels they will belong to. Proper mapping will be required to implement each particular arrangement.
- Older DS1202 devices did not contain the serial number. To find out if your DS1202 has the serial number onboard, try to read it with the sys.serialnum R/O property. If this property returns an empty string, then the serial number is not present, otherwise it will return all 128 bytes of the serial number. The first 64 bytes are one-time-programmable (OTP) with the sys.setserialnum method.
Supported Objects, Variable Types, and Functions
- button — monitors the MD line (setup button)
- fd — manages flash memory file system and direct sector access
- io — handles I/O lines, ports, and interrupts
- net — controls the Ethernet port
- pat — "plays" patterns on a pair of LEDs
- ppp — provides access to the Internet over a serial modem (GPRS, POTS, etc.)
- pppoe — provides access to the Internet over an ADSL modem
- romfile — facilitates access to resource files (fixed data)
- ser — in charge of the serial ports (on this device, serial channels of the RS232 port)
- sock — socket communications (up to 16 UDP, TCP, and HTTP sessions)
- ssi — implements up to four serial synchronous interface (SSI) channels, supports SPI, I²C, clock/data, etc.
- stor — provides access to the EEPROM
- sys — in charge of general device functionality
This platform supports the standard set of variable types and functions (a.k.a. "syscalls").
Platform-Specific Constants
- Enum pl_redir — The list of constants that define buffer redirection (shorting) for this platform
- Enum pl_io_num — The list of constants that define available I/O lines
- Enum pl_io_port_num — The list of constants that define available 8-bit I/O ports
- Enum pl_int_num — The list of constants that define available interrupt lines
- Enum pl_sock_interfaces — The list of available network interfaces