Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.
hi,
try zero-padding the matrices. add zeros to the end of the smaller size matrice to be the same size of the other matrice.
for example, add 5 more rows to the 9x15 matrice to match with the other 9x20 matrice.
you can add another button to your gui that filters your data. or you can add filtering to your existing code.
if you add button, it filters the data and plots its spectrogram. you can make this code inside the button's code section.
interrupt means; when pic is running its main code, when an interrupt happens, pic breaks its current work and immediately runs the interrupt routine. interrupt is programmed outside the main code. you can see many examples and definition on internet. also datasheet of pic will help you.
the code seems OK. another thing you may use; instead of if statement, you can make an interrupt routine to the switch ON. I mean you can make the switching ON an interrupt to the microcontroller.
try setting the switch ON before powering up the system. If you switch ON after a while powering up the system, the program may be couldn't be out of the display count loop.
TCA785 is used in full wave thyristor controlled circuits in the aim of capturing zero crossings. you should trigger the thyristors at the zero-crossing points to get full wave. in the datasheet you can examine application circuits.
the resolution depends on your PICs ADC hardware. In this case, in 16F877, ADC is 10 bit. Then your resolution is 10bit.
the values are in ADRESH and ADRESL registers. you can get further details in PICs instruction manual. It is really helpful.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.