- Jul 23, 2011
- 1
- 0
- 0
Need help with some problems I am having in Embedded systems programming
Assuming that the PIC18F8680 microcontroller is running with a 40-MHz oscillator, write a sequence of C statements to generate a 10-kHz digital waveform with an 80% duty cycle.
Assuming that the PIC18F8680 microcontroller is running with a 32-MHz oscillator, write a sequence of C statements to generate an 8-kHz digital waveform with a 75% duty cycle.
Write a sequence of C statements to configure the USART of the PIC18 microcontroller to operate with the following parameters:
[FONT=MS Mincho,MS Mincho][FONT=MS Mincho,MS Mincho]• [/FONT][/FONT]Baud rate set to 38,400
[FONT=MS Mincho,MS Mincho][FONT=MS Mincho,MS Mincho]• [/FONT][/FONT]Serial port enabled
[FONT=MS Mincho,MS Mincho][FONT=MS Mincho,MS Mincho]• [/FONT][/FONT]Transmission enabled
[FONT=MS Mincho,MS Mincho][FONT=MS Mincho,MS Mincho]• [/FONT][/FONT]Reception enabled
[FONT=MS Mincho,MS Mincho][FONT=MS Mincho,MS Mincho]• [/FONT][/FONT]Asynchronous mode selected
[FONT=MS Mincho,MS Mincho][FONT=MS Mincho,MS Mincho]• [/FONT][/FONT]High-speed mode selected
[FONT=MS Mincho,MS Mincho][FONT=MS Mincho,MS Mincho]• [/FONT][/FONT]8-bit operation for both transmission and reception
I need to do this in C language.
Any help would be appriciated. I dont know where to start.
Assuming that the PIC18F8680 microcontroller is running with a 40-MHz oscillator, write a sequence of C statements to generate a 10-kHz digital waveform with an 80% duty cycle.
Assuming that the PIC18F8680 microcontroller is running with a 32-MHz oscillator, write a sequence of C statements to generate an 8-kHz digital waveform with a 75% duty cycle.
Write a sequence of C statements to configure the USART of the PIC18 microcontroller to operate with the following parameters:
[FONT=MS Mincho,MS Mincho][FONT=MS Mincho,MS Mincho]• [/FONT][/FONT]Baud rate set to 38,400
[FONT=MS Mincho,MS Mincho][FONT=MS Mincho,MS Mincho]• [/FONT][/FONT]Serial port enabled
[FONT=MS Mincho,MS Mincho][FONT=MS Mincho,MS Mincho]• [/FONT][/FONT]Transmission enabled
[FONT=MS Mincho,MS Mincho][FONT=MS Mincho,MS Mincho]• [/FONT][/FONT]Reception enabled
[FONT=MS Mincho,MS Mincho][FONT=MS Mincho,MS Mincho]• [/FONT][/FONT]Asynchronous mode selected
[FONT=MS Mincho,MS Mincho][FONT=MS Mincho,MS Mincho]• [/FONT][/FONT]High-speed mode selected
[FONT=MS Mincho,MS Mincho][FONT=MS Mincho,MS Mincho]• [/FONT][/FONT]8-bit operation for both transmission and reception
I need to do this in C language.
Any help would be appriciated. I dont know where to start.
Last edited by a moderator:
