Questions tagged [string]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
3
votes
2answers
303 views

Error handling strings in a 8051

I am using a Texas Instruments CC1110, which is based on the 8051 microcontroller. I'm programming it using the IAR Embedded Workbench. I have written a function named ...
3
votes
1answer
6k views

VHDL: Is it possible to have a “variable length” string in VHDL like in programming languages?

According to the package named Standard in VHDL, the string is actually declared as array of character type where the character type itself is also defined within the package. Provided that I am ...
2
votes
1answer
2k views

Using string type in VHDL

To make it easier to read a waveform in the testbench, I want to use a signal/variable that is of string type. Basically e.g when I am reading address 0x03 from an SPI device, the string shall say ...
2
votes
1answer
83 views

Power supply to led string

I have some led strings of the type shown: ...which run off two C2032 batteries, so 6V. I am cutting off the battery cases and connecting them to a 6V supply which is a step down converter on a 12V ...
1
vote
3answers
259 views

What DIY Function Generator is Suitable to drive a Pasco WA-9857 String Vibrator?

Preface... total amateur. I picked up 8 Pasco WA-9857 String Vibrators off of eBay for an art project. I need some way of driving them individually.... cheaply. So I bought a $12 XR2206 Function ...
1
vote
1answer
863 views

How does to reverse items in an array type

I have a function that works with string passed to it. The string should be defined as "a to b" rather than "a downto b". I have the following questions: How to find out if the string passed is ...
0
votes
2answers
275 views

Why is there no resistor in a christmas LED string light?

I bought a bunch of different LED string lights for Haloween and Christmas. All of them are arranged as 2 sets in parallel. They are either 50 or 100 LEDs. I noticed that most of them have a molded ...
0
votes
1answer
71 views

Extract numbers from String on ATMega168

I try to separate and parse two numbers out of a string, one is a float and one is an int. So I do this... ...
0
votes
2answers
120 views

Microcontroller support strings or other libraries [closed]

I heard some microcontrollers have a poor (or no) support for <string>s as a data type of C/C++ when programming. How to know if a microcontroller supports <...