The code tag has no usage guidance.
0
votes
1answer
39 views
AYTINYx4 - execute other code during analog conversion
I am using an ATTINY44 in my current project.
As I need to do some time sensitive switching I would like to avoid any unnecessary delay.
To control another device (not time sensitive) I need to read ...
-1
votes
1answer
14 views
What XS-3 code equivalent of this hex number and why?
The hex number stored in a memory location of a 2's complement machine is A5BC and I want to know what four decimal digits represent the number in XS-3 code. For some reason the answer is 7289, but I ...
0
votes
0answers
60 views
Failure: (vsim-3808) Incompatible modes for port
I am attempting use modelsim to simulate a peak detector and am having trouble with the simulation of the handshaking protocol between two modules: dataGen and dataConsume.
I am certain that the code ...
1
vote
3answers
135 views
Arduino code - Why do we need to read the rising edge?
I'm having a difficult time figuring out why we need to read the rising edge instead of using both edges.
We are doing a school lab using interrupts in Arduino code, and I understand that we need ...
4
votes
1answer
79 views
What component has the reference designator RY?
I found a component designated RY8015 which I don't recognize, shown on the photo below on an LCD TV PCB (the bulb-like part next to a green radial varistor).
What is it called? What is its design ...
0
votes
1answer
29 views
Do I need to use the 'add' function in mips to store into a variable or can I store into a variable with load word?
The following problems deal with translating from C to MIPS. Assume that the variables f,g,h,i, and j are assigned to registers $s0, $s1, $s2, $s3, and $s4, respectively. Assume that the base address ...
0
votes
2answers
54 views
Verilog code question
I'm new in Verilog and I need to create a module that when Entry=1, it will increment 5'b000100 in the "Money" output.
This is the code that I made, but it's not working properly. The program it's ...
1
vote
2answers
129 views
Understand VHDL Code
I've been learning VHDL coding for the past two weeks to be able to understand the VHDL code of what I'll be working on. In other words, I'm still a beginner and I need help understanding some codes ...
0
votes
1answer
199 views
RTOS: Micrium uCOS vs Mentor Graphics Nucleus
We're working on a wearable IoT device, and I'm hoping for some guidance on the common commercially available RTOS, such as what's the difference between the two. As of current I'm leaning toward ...
1
vote
1answer
134 views
Electrical schematics component ID's
Is there a list of standard ID codes used for components on a schematic drawing that anyone can point to?
e.g.
K = Contactor
S = Switch
Y = Solenoid
X = Terminal strip
etc.
Any list would be ...
0
votes
2answers
44 views
Most efficient way to switch order in which data is read in assembly
I have an assembly assignment that requires me to be able to store a number and via a lookup table output the number on a 7 seg display in both forward and reverse order depending on the state of an ...
1
vote
0answers
132 views
can't change LEDs states using PCA9685
I have a PCA9685 IC connected to i2c of cubieboard like board. Also OE pin is connected to one GPIO pin. I'm using ic2tools to communicate with PCA9685, I can read/...
1
vote
2answers
110 views
Difference between Blocking and Non-Blocking assignment in VHDL
I started reading about Blocking and Non-bocking assignment with reference to verilog. But when I switched to VHDL its confusing.
What I felt is, in VHDL other than to visually differentiate ...
5
votes
2answers
246 views
Help understanding “unusually talked about” transistor code markings
I am a beginner trying to gain a better understanding of transistor codes. Before posting this, I searched the web looking for answers but I was unsuccessful.
Please take a moment to look at the ...
-4
votes
3answers
2k views
0
votes
3answers
69 views
Numbering format in code syntax
For the code, which I am referring following is syntax:
Write_Parameter(0x00);
In above line, what does "x" stands for and what is data size for x? My assumption is its dec format.
So, What other ...
-4
votes
1answer
81 views
From bitwise instructions to c code intuitively
I need to be able to recognize what an assembly code is doing. I can picture the basic instructions in C code in my head. But bitwise instructions such as ...
4
votes
3answers
591 views
Looking for capacitance and voltage rating - How to read electrolytic SMD capacitor labels
I need to replace an SMD capacitor on a board. The printing on it says
F1
560
2.5z
I have googled intensely but have been unable to find information on how to read such a codes.
I need to find out ...
1
vote
2answers
175 views
Writing MIPS assembly and machine code for instructions
I am continuing my practice with MIPS assembly and machine code. I am doing a problem that assumes the following:
...
0
votes
3answers
126 views
How To use ANDWF in Microchip PIC18fxxxx Assembly Language
ASSEMBLY LANGUAGE MPLAB PIC18f2550
I am trying to "AND" 2 Variables "If Variable_1 = 0 AND Variable_2 = 1 then"
"DO WHAT IS NEEDED." "End If"
This below makes no sense used as a "AND" Logic ...
0
votes
1answer
79 views
2
votes
2answers
224 views
Multiple AVR Projects Sharing Code - Managing Large Projects
I'm working on a group project that is based around designing an automotive CAN bus system. Essentially there are multiple different nodes on the bus, acting as sensors, displays, controllers or ...
7
votes
4answers
2k views
My first STM32 code - please criticize me
I have just wrote my first code on STM32 - blinking LED. It combines a fragments from different sources; please criticize me so I can learn how to write proper code and don't learn stupid habits.
<...
3
votes
2answers
192 views
What is a Barker Code?
I Googled this, but didn't find anything that could put it in layman's terms for me to understand. I know it has to do with signals/ pulse compression, but I am not grasping what exactly it is. If ...
0
votes
2answers
112 views
Self complementing Codes
This statement was deemed true:
Given any self-complementing decimal code scheme, if we know the codes for the number 283, then we can deduce the codes for 671.
I wanna know why. I took Excess-3 BCD ...
2
votes
2answers
628 views
What does “+:” mean in Verilog?
When I was looking at someone's Verilog code, I found "+:" in Verilog.
It looks like an arithmetic function but I'm not sure. I never seen before. Does anyone know this usage?
Update:
...
0
votes
1answer
102 views
VHDL code Process
Question:
change
z <= y AFTER 30 ns
to
z <= y after 15 ns
why after the change above ,the value of w never updates ...
3
votes
6answers
685 views
Implementation and usage of gray code?
Generally and briefly, are there any direct application of gray code in electronics? If so, what are they?
1
vote
4answers
116 views
Help with delayed smoothing code
I'm hung up on how to smooth analog sensor data in a specific way. Math/code is not my expertise so thanks in advance.
My sketch needs to listen an AnalogPin and smooth/remove any outliers as the ...
0
votes
1answer
995 views
Controlling an RGB 5050 LED strip with Arduino and potentiometers [closed]
I recently found and old amplifier with the speaker taken out of it and thought it would look nice as a light feature. The switches and potentiometers are still in place but have removed the power ...
2
votes
1answer
438 views
How does this Matlab code work?
I came across this uncommented Matlab code except for the header:
...
0
votes
1answer
542 views
Custom built 16x32 (40) LED Matrix controlled by Arduino
I am planning to build a clock / thermometer / info display. I have ordered 10 pieces of 8x8 LED matrixes from ebay (http://www.ebay.co.uk/itm/331064583297).
As this is not a pre-built one I have got ...
0
votes
1answer
884 views
2
votes
1answer
1k views
Deep sleep mode consumption of PIC
I would like to know why my PIC which when I put in to deep sleep does consume more than what is specified by the datasheet. I have connected a precision current meter and found that when I load the ...
2
votes
1answer
1k views
What are these hardware components, and how do I control them?
My father received a video card in the mail last week. He gave it to me and I dismantled the card to get to just the video player and other components.
The labels here are based on my experience ...
0
votes
2answers
152 views
Verilog code synthesis error
I'm having problem with my verilog code when I synthesize it. It shows multiple drivers error. I think may be it's because of multiple always blocks I'm using in it. So how can I fix it!!? Here it is:
...
8
votes
2answers
5k views
How to visually tell the difference between axial inductors and common resistors?
Is there a simple way to tell axial inductors and resistors apart in through-hole type PCBs? I do find the color code on both very confusing. Is there an obvious difference that I am missing? As a ...
3
votes
4answers
313 views
Available Guidelines for Interrupt Driven Processing
Are there any available guidelines for the amount of code to have in a critical section of interrupt driven processing?
My personal rule of thumb is that the critical portion, (i.e. that between ...
1
vote
1answer
595 views
Problems with LCD initialization: 4-bit mode
I have this microcontroler with this LCD(DEM16216) mounted on it which I cannot initialize.
Only 4 of the pins are connected, thus it runs in a 4 bit mode (I think?). I found the datasheet for it (...
2
votes
1answer
957 views
Barker code autocorrelation
How do you auto correlate the following Barker code? I tried to use the formula on Wikipedia's page but it did not make sense to me.
+1, +1, -1, +1
8
votes
5answers
820 views
What tools or standards can be used to improve embedded C code reliability?
I typically program PICs in C, usually for switched-mode converters. I've heard of various static analysis tools and standards like MISRA C that can be used to help improve the reliability of code. I'...