In the last article we described how to modify the Microchip’s Bootloader so to be used with the PICCOLETTA and we described how to modify the linker and sources so to use the MCC18 lite version. The lite version hasn’t all the optimization enabled, so when we try to compile the bootloader it builds an application with a dimension bigger than the space reserved into flash. We modify the sources to support the PICCOLETTA board and specifically we increase the space reserved in flash for the bootloader ( from 0×1000 word to 0x10FF word). Due to the increase of the space reserved to the booloader, an application that will be burned into the flash must be located after the end of the bootloader so it doesn’t rewrite part of the bootloader when the application burning phase. The application will be burned into the flash, from the address 0x112A.
This is a preview of
Piccoletta: a USB developer board for PIC’s – Building an application
.
Read the full post (765 words, 8 images, estimated 3:04 mins reading time)
This manual refers to the Adapter shown in this post:
This adapter provides the capability to connect circuits with 3.3V/ 5V logic to a common PC’s COM port
It provides the capability to take the power directly from the PC’s COM port or directly from the circuit that uses this interface.
One of the biggest problems that we have when we begin to play with microcontroller, regards how to "interface" the PC with the microcontroller using the serial line (RS232).
Using the Standard IO facilities of the avr-libc
The avr-libc gives some facilities of the standard I/O. Only a limited subset of the standard IO is implemented (refer to the <stdio.h>: Standard IO facilities section of the avr-libc manual.). The uart.c source code could be used to interface the uart device with the Standard IO. The following example from the stdio man page of avr-libc illustrates the usage of the uart library.
This is a preview of
The Usart Bla bla bla: Using the Standard IO facilities #16
.
Read the full post (160 words, estimated 38 secs reading time)
Categories: Bash Tip & Tricks, The Prince: C, The Usart Bla bla bla, UNIX TLC, xAppSoftware News Tags: AVR, interrupt, polling, RS232-C, source code, transmission, uart, usart
The MC9RS08KA1 & MC9RS08KA2 watchdog timer.
The watchdog timer (Freescale named it COP Computer Operate Properly)can only cause the System Reset of the device and it has not the interrupt generation capability.
This is a preview of
The Watchdog Timer (Freescale RS08) – Part 3
.
Read the full post (766 words, estimated 3:04 mins reading time)
The MC9S08QG8 & MC9S08QG4 watchdog timer.
The watchdog timer (Freescale named it COP computer operate properly) in these devices can only cause the System Reset of the device and it has not the interrupt generation capability.
This is a preview of
The Watchdog Timer (Freescale HCS08) – Part 2
.
Read the full post (962 words, estimated 3:51 mins reading time)
The watchdog timer device is used to perform a specific operation after a defined period of time if something goes wrong with an electronic system and the system does not recover on its own. For example, if an application goes into an unpredictable state the watchdog timer could be programmed to perform a system reset. The watchdog device can be an external device or a part of a microprocessor.
Latest Comments