EasyManuals Logo

STMicroelectronics STM8 User Manual

STMicroelectronics STM8
126 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #125 background imageLoading...
Page #125 background image
To unlock, go to the light programmer interface of STVD and check the Unlock Device checkbox as
shown below:
Also select Erase before Programming radio button because it is highly likely that your target chip is
not empty. Now once you retry to reprogram, it will get unlocked.
Mastering C Language
You need not to be a C whiz to work with microcontrollers but certain things will surely help you to
resolve some critical problems with simple codes. You must check supported data types whenever
you begin working in a new development environment and should always use unsigned-signed
designations to avoid unnecessary mistakes. Likewise, variable size is also important. Pointer,
structures, unions and arrays are helpful features of C-language. You must learn how to use and apply
them successfully. Without these you can still work but things will look really dirty. When coding for a
new work, you must try to settle what you wish from your system and how should it behave. There
should be an organized workflow and thereby your code will automatically be formulated in a state-
of-machine algorithm or as a real-time system. You must try to avoid delays and loops wherever
possible. Try to avoid polling and use interrupt-based systems. This will make your device behave in
real-time with zero latency. However, you must be careful in handling interrupts because interrupts
within interrupts will cause your system to crash miserably. Functions make things modular and thus
easy to modify or debug. Repeated tasks should be placed in functions. A blinking LED code may look
simple and stupid but sometimes very useful for testing stuffs. Some basic knowledge on mathematics
and algorithms are also requirements for becoming a good embedded-system specialist.

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the STMicroelectronics STM8 and is the answer not in the manual?

STMicroelectronics STM8 Specifications

General IconGeneral
BrandSTMicroelectronics
ModelSTM8
CategoryMicrocontrollers
LanguageEnglish

Related product manuals