Start Back Next End
  
ZBasic System Library
ZBasic Microcontrollers
5
Union IPAddress_t
   Dim w as UnsignedLong
   Dim b(1 to 4) as Byte
End Union
Structure Microtime_t
   Dim timerTicks as UnsignedInteger
   Dim fastTicks as UnsignedLong
End Structure
Option DeviceParameter
The operating frequency of the device may be specified using the device parameter ClockFrequency
The allowable values are 80MHz (the default) or 160MHz using the designators "80M" and "160M" or the
numeric equivalents 80000000 and 160000000.
Several new device parameters apply solely to the ESP8266.
FlashSize
This device parameter may be used to specify the size of the serial Flash
chip using the designators "512K" (the default), "1M", "2M", "4M", "8M" 
or their numeric equivalents 524288, 1048576, 2097251, 4194304, and
83886808, respectively. 
FlashFrequency
This device parameter may be used to specify the operating frequency of
the serial Flash chip using the designators "20M""26M", "40M" (the
default) "80M", or their numeric equivalents 20000000, 26000000,
40000000 and 80000000, respectively.
FlashMode
This device parameter may be used to specify the operating mode of the
Flash chip using the designators "QIO" (the default), "QOUT", "DIO" or
"DOUT".
It is important to note that specifying the wrong operating mode or frequency for the Flash chip may result
in your application not working as may specifying the Flash size larger that it actually is.  Specifying the
Flash size smaller than it actually is has no ill effect other than to result in less Flash memory being
available to the application.
Downloading ESP8266 Applications to the Device
All ESP8266 devices have a built-in bootloader.  In order to get the device to run the bootloader (as
opposed to the application), the protocol is to hold GPIO0 low while resetting the device.  On all ESP8266
devices, this process can be performed manually using a switch or jumper and this reset method is,
therefore, referred to as the Manual Reset method.
Some devices have special circuitry that allows the serial port DTR and/or RTS signals to be used to get
the device into the bootloader.  There are several known methods available on different boards but the
effect of all of the is the same, i.e. to hold GPIO0 low while resetting the device.  The following text
describes the known methods and provides a name for each of them.  Although pullup resistors are
shown on the RESET and GPIO0 lines in the diagrams below, it is important to note that any particular
board may have these present already.
Previous page Top Next page