Questions tagged [code]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
6
votes
2answers
895 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
14k views

AND Gate IC 7408, the number means?

Why it is 7408? What does it mean? Why it is used for AND Gate?
0
votes
3answers
102 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
109 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
2k 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
630 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
601 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
5k views

Functions that return Enums?

In Atmel ASF I found this piece of code ...
3
votes
2answers
715 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
3k 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. <...
4
votes
2answers
4k 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
3k 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 ...
3
votes
2answers
7k 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
227 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
8answers
2k 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
162 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
3k 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
541 views

How does this Matlab code work?

I came across this uncommented Matlab code except for the header: ...
0
votes
1answer
1k 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
8k views

Assignment compatiblity error in verilog

...
2
votes
1answer
2k 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 ...
3
votes
1answer
3k 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
578 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: ...
12
votes
2answers
16k 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
393 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
1k 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
2k 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
9
votes
5answers
2k 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'...