PROJECT STATEMENT
Generation of various waveforms using TM4C123GH6PM microcontroller and display them on CRO.
1.Waveform generator is an equipment which provides us various mathmatical waves as ouput as per need.
2.User can switch waveform shape,frequency and amplitude as per need.
3.In our project we produce Sinsuoidal ,Triangular , Sawtooth and Square wave.
4.Frequency increases/decreases by factor of 10.
METHODOLOGY
1,CREATION OF A LOOKUP TABLE CONTAINING VALUES FOR SINE WAVE, TRIANGULAR WAVE, SAWTOOTH WAVE AND SQAURE WAVE.
2.FREQUENCY OF WAVE IS DEPENDING UPON LOOP DELAY AND CAN BE CHANGE USING INTERRUPT FROM SWITCH 1.
3.WAVEFORM TYPE WILL CHANGE USING INTERRUPT FROM ANOTHER SWITCH 2.
4.VALUE OF OUTPUT VARIABLE IS PASS TO CRO THROUGH LT1661 ADC.
5.PORT B IS USE SELECT SLAVE LINE OF ADC.
6.PORT F IS USED TO HANDLE INTERRUPT AND LED.
PSEUDOCODE
1.Initializes the system clock.
2.Enable port B,D,F and make digital enable.
3.ENABLE SSI(Synchronous Serial Interface).
4.Make PF4 & PF0 as switches for changing frequency and wave when respective interrupt occur.
5.Make PF1-PF3 as output port.
6.Make pin as positive edge triggered.
7.Enable NVIC interrupt 30 with priority 1.
8.Enable all pins of port B as output pins as selecting line for slaves for ADC.
9.Make SSI as master for all slaves.
10.In port F handler write code for checking interrupts from switches on PF1 and 4 and make changes accordingly.
11.Enable timer A of block 1 as counter for providing delay.
OUTPUT WAVEFORMS
REFRENCES
1.https://github.com/aritradavidsinha/Signal-Generator
2.https://www.youtube.com/watch?v=YyElFTMbknM
3.https://www.youtube.com/watch?v=EpDaTH9irzU
Recent Comments