Show2 as stand alone device

Moderators: odroid, mdrjr

Show2 as stand alone device

Unread postby pjnoxon1 » Tue May 15, 2018 5:58 am

Hi - I haven't worked with Arduino IDE - it seems it has it's own language?

I am investigating using the SHOW2 with some additional hardware as an
analyzer for troubleshooting where I work. There are 3 signals to be looked
at: one is a timing signal, and two are data lines. They are not very fast. I
would like to use the SHOW2 for it's nice little display, and to add my own
software to do the analysis of these 3 signals. I would be designing some
interface for the 3 signals and input them into the ATMega using the 6 pin
connector. First I would time the pulse widths of the timing line, so I would
input that signal to the timer within the ATMega. After analysis if the timing
signal is in good shape, drive the display with "Timing Good" and get into the
remaining analysis. This would involve scanning the two other signals in sync
with the timing signal. The results would be 58 six-bit words that would be
stored in memory and displayed on the SHOW2 in decimal (not binary).

I've done most of my programming in assembly code. I like it because it's
faster to execute on a simple micro. Any ideas about how to do assembly
on the SHOW2?

thanks - PJ
pjnoxon1
 
Posts: 18
Joined: Sun Jun 12, 2016 2:10 am
languages_spoken: english
ODROIDs: U3

Re: Show2 as stand alone device

Unread postby odroid » Tue May 15, 2018 6:29 am

Arduino language is based on C++ and C.
I don't use the Assembly language these days. I used it with Intel's 8051 in '1988~90 only.
Anyway, since Ardiuno IDE supports the inline assembly, you can make an assembly program if you know well the AVR assembly instructions.

BTW, there is a pre-made function in Arduino library to measure the pulse width.
https://www.arduino.cc/reference/en/lan ... o/pulsein/
User avatar
odroid
Site Admin
 
Posts: 27754
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Re: Show2 as stand alone device

Unread postby pjnoxon1 » Tue May 15, 2018 7:44 am

Well that sounds promising. Of course if I am going to work on the
nuts and bolts, I could get in the way of the rest of things - like
what memory locations are already taken, what registers can I
use, and the like. Having higher level programming available is
nice for doing some analyzing. Maybe I can get it all done in C++
I took a course on that in 1994, and C, later on Python (2015)...

-pj
pjnoxon1
 
Posts: 18
Joined: Sun Jun 12, 2016 2:10 am
languages_spoken: english
ODROIDs: U3


Return to SHOW

Who is online

Users browsing this forum: No registered users and 0 guests