Hey All,
I'm working through "AVR Programming" by Elliot Williams. What' I'm hoping to do, is be able to recreate the projects using the ESP8266 instead of the Atmel chip.
One difference I find with the code Elliot writes for the Atmel chip is he assigns values directly to memory registers. An example of this can be found in the first exercise for toggling an LED: https://github.com/hexagon5un/AVR-Progr ... blinkLED.c
My question is, how can I mimic this style of AVR programming on the ESP8266--without using the higher level functions exposed in either of the provided OSs. Is the ESP8266 programmed in a similar manner outlined above?
Thanks you!
Direct programming: no os?
Re: Direct programming: no os?
Postby pratik » Mon Feb 06, 2017 11:31 am
Yes, you can definitely do this with the ESP8266. However, the register addresses are not all revealed to the public. The reason for this is that the Wi-Fi radio part is interworking with other peripherals such as the ADC and so if you program either incorrectly, the whole system will misbehave - and being a radio chip, it can mess things over a large area.
Consequently, the best way to program ESP8266 is to use the API functions. They are efficient and need some getting used to. Believe me, I still have a tough time when I cannot access registers.
By the way, try out the ESP32 - it is just what you want.
Consequently, the best way to program ESP8266 is to use the API functions. They are efficient and need some getting used to. Believe me, I still have a tough time when I cannot access registers.
By the way, try out the ESP32 - it is just what you want.

Who is online
Users browsing this forum: No registered users and 3 guests
Login
Newbies Start Here
Are you new to ESP8266?
Unsure what to do?
Dunno where to start?
Start right here!
Latest SDK
Documentation
Complete listing of the official ESP8266 related documentation release by ESPRESSIF!
Must read here!
- All times are UTC+08:00
- Top
- Delete all board cookies
About Us
Espressif Systems is a fabless semiconductor company providing cutting-edge low power WiFi SoCs and wireless solutions for wireless communications and Internet of Things applications. We are the manufacturer of ESP8266EX.