Displaying real time data on 7 segment [closed] - embedded

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 3 months ago.
Improve this question
i wonder how the real time data from microcontroller (TMS320F28835) can be displayed on 7-segment. I can view the data(float or int data type) on expression window in code composer studio but i want to display that data on 7 segment(SND3360). Need help for this problem. Any refernece code or manual for this problem will be helpful.
Looking for reference code or technical manual.

The SND3360 is a very basic 6 digit display with no controller/multiplexer. For each digit you must have all the common cathode digit pins normally high, then set the segment pins for one digit and pull its cathode low to illuminate the selected LEDs. You would after a short delay reset the cathode high, then repeat for the next digit. By cycling through each digit rapidly and regularly persistence of vision will give the impression that all 6 digits are displayed.
You need to do this in software in such a way that the digit refresh rate is not affected but other code running. One way of doing that is to update the display in a timer interrupt handler or a high priority RTOS thread.
A hardware solution (and therefore off-topic) is to use a BCD to 7-Segment display decoder (e.g. CD5411to drive the segment pins, in that case your MCU needs just 4 pins instead of 8 to define the digit, and then 6 lines to select the digit - you could further use a multiplexer (e.g. 74137) to select one of 6 digit pins using just three GPIO, so with the BCD decoder and output multiplexer, you can connect the display using just 7 GPIO rather than 14 driving it directly from MCU GPIO. It also simplifies the software.
Even simpler is to use a controller chip specifically designed to drive exactly this type of display. For example the STLED316S. That can be driven from a three-wire serial interface. The controller handles all the multiplexing and refresh for you.

Related

why not only one datasheet for STM microcontrollers [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed last year.
Improve this question
I know it's not a coding question , but I am struggling with something around my head for a little bit, for example stm32f446re : why it doesn't have only one datasheet , why so many datasheet for only one microcontroller , also my question is : how could I get all different possible datasheets for a specific microcontroller like stm32f446r4 Nucleo because I searched a lot but my instructor told me that there is about 6 different datasheets for stm32f446re , but what I could find is only 2 datasheets ?
Traditionally, documentation for microcontrollers goes like this:
Data sheet = information for the hardware designers.
Reference/User's Manual = information for the software designers.
A separate core manual regarding the CPU Instruction Set Architecture (ISA) and assembler language, also for software designers.
Application notes = additional information about either hw or sw.
Errata. List of known hardware bugs. Always skim through it!
Please note that "Nucleo" etc isn't a microcontroller but a specific evaluation board. It will have additional information about that specific board.

Is GPS data signed and/or timestamped? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
Is GPS data signed and timestamped by the satellite?
No, GPS is not signed. I think there may be in future some signed signals. Maybe it is used on military part of GPS.
GPS spoofing is a well know problem, and problems are usually "solved" in hardware. If signal strength on some satellites changes quickly: do no trust it. Multiple antenna (on extreme of lorry/ship) and comparing strength of signal helps. Some directional antenna helps to know that signal expected from a satellite come from where it is expected. And often some gyroscope, compass, or and tracking, to check plausibility of data.
Note: fishing boat uses it to decoy own position (in protected area/economic exclusive zones). They causes a lot of troubles to other ships and boats (and sometime to ground equipment).

Can I replace my development PC displays with a VR headset (part-time) yet? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 4 years ago.
Improve this question
I'm looking for a VR solution (presumably software for an Oculus or Vive device) that presents 2 to 4 high-resolution development displays. The main requirement is that it provides all the functionality a software developer needs for part-time use.
Although I welcome you to include your favorite solution and note its benefits, as StackOverflow is not for product comparison any solution will answer my question.
It's OK if this isn't suitable for full work-week use, such as concerns about eyestrain from 8 hours of straight use (although severe eyestrain after short use would make it unusable), but it's not OK if I lose key currently-standard functionality commonly used by most developers, such as ability to run multiple displays and snap an IDE to fill one and a browser to fill another, ability to have a high resolution or high virtual resolution, poor text quality, or ability to use a debugger.
I'd prefer one that I can use with a laptop as a mobile solution outside (yes, I know, the headset ruins the beach), but it isn't required.
Does something like that exist?
Check out Virtual Desktop. The resolution of the Rift & Vive is still a bit low to use this for coding & development but it's got a lot of potential!

Multiple programs on AVR atmega [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I want to make my Atmega robot to operate multiple modes (line following, obstacle avoidance, direct guidance from PC ) How can I load these separated programs on flash and how to select one of them when restarting the robot?
The easiest way is to make one big program with all the functionality of all the modes. On startup, in main() check if certain buttons are pressed, then choose which mode you are going to operate in. Then only use the functions and control mechanisms for that mode from then on. The rest of the code just sits there unused, but it would anyway in any other scheme.
There isn't an easy way to break the code into several different complete programs. For example, the vector table is fixed to be where it is. You would have to have the interrupt handlers check to see which mode is active then call the appropriate function for that mode.

What's the point of OR-gate? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about programming within the scope defined in the help center.
Closed 8 years ago.
Improve this question
If you want to have 1 as an output if either of two inputs are 1, why don you need an IC gate when you can just connect two wires and have one output from them?
Power.
With CMOS technology, which is pretty much everything these days, a gate drives a one by connecting the output to the +ve power rail. It drives a zero by connecting the output to ground. If you have two gates driving a single wire, one is driving high, and the other is driving low, you create a path that is connecting the power rail to ground. This will give continuous current flow and cause lots of power to be dissipated.
It also doesn't give the result you want, because the voltage on the shared output will tend to float around the centre value(*). Neither zero or one. The circuit ends up being a potential divider.
(*) assuming the size of the transistors pulling up/down is about equal.
Check out wired-OR.