Question: Write in HCS12 language. C or assembly program. 1) 7 marks] Write a C or an assembly program to generate the waveform shown in Fig.
Write in HCS12 language. C or assembly program.
![Write in HCS12 language. C or assembly program. 1) 7 marks] Write](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66f38b309acf7_91166f38b3000a62.jpg)
1) 7 marks] Write a C or an assembly program to generate the waveform shown in Fig. 1 on PB1 (pin 1 of port B) using RTI interrupts. 1 sec Fig. 1 4s Hint: You can modify the example in the course slides. PB1 should be high for 8 RTI interrupts (-1 second) and low for 32 RTI interrupts (-4 seconds). This process should be continuous. 1) 7 marks] Write a C or an assembly program to generate the waveform shown in Fig. 1 on PB1 (pin 1 of port B) using RTI interrupts. 1 sec Fig. 1 4s Hint: You can modify the example in the course slides. PB1 should be high for 8 RTI interrupts (-1 second) and low for 32 RTI interrupts (-4 seconds). This process should be continuous
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
