41 Threads found on edaboard.com: Code 16 Digit
I am a beginner on PIC Programming and using PStart Programmer for programming (asm). Can anyone help to provide on a Static LCD display (1 line 16 digit) sample program source code, for displaying Temperature eg 12.5°C with range from 0°C to 30°C when the control input voltage varies from 0V - 10Vdc or 0V - 5Vdc using a PIC16F84A Chip? LCD Panel d
Microcontrollers :: 14.10.2009 23:34 :: Bernice Lim :: Replies: 2 :: Views: 2196
I did it before using Microcontroller, so I'll explain the idea and you can translat it into HDL.
Suppose you have number equal 32 (in binary form and you want to covert to decimal
1- Divide 32 by 10 --> it will produce 3 and the renaider is 2
2- the remaider 2 is the least significat digit in decimal number you can use a table like to generat t
PLD, SPLD, GAL, CPLD, FPGA Design :: 27.04.2004 04:02 :: Al Farouk :: Replies: 4 :: Views: 1272
I need a simple circuit with VB code that can read a PIC data (numeric) like 16 digit serial numbers encoded in PIC (PIC12C508/509) via COM1 or COM2
Any idea or link will be appreciated
Microcontrollers :: 09.06.2006 01:26 :: kasamiko :: Replies: 9 :: Views: 972
I'd like use a msp430fg438 to drive a 8-digits
16-segments LCD panel, the use of a particular
configuration ram-bank (that mean a particular
bit represente a particular segment) depends just
of the pin out ? I couldnt get information about why
in the different aplication notes use so extrange
distribution of the bank ram. I should do first th
Microcontrollers :: 31.10.2006 12:56 :: Hermano Canguro :: Replies: 0 :: Views: 415
Now, I'm having a project using ADC ICL7135. Could anyone help me any concern doccuments and sample code for it. I'm verry thanks!
Regard your repply...!
Please help me!!! :!:
Microcontrollers :: 28.06.2007 04:51 :: member_tdh :: Replies: 3 :: Views: 1261
Try this, or browse code on same site. ;)
Microcontrollers :: 10.12.2007 07:17 :: bungee- :: Replies: 3 :: Views: 2159
Hello! i'm new to digital design, especially VHDL. I've designed a 16-bit CLA code and a testbench for it but i'm having difficulty with the testbench part.
It won't even compile and i can't find where i've gone wrong. It would be a great big help if you could lend me a hand. So, here's the code(testbench)
ASIC Design Methodologies and Tools (Digital) :: 26.05.2010 06:22 :: hyonii :: Replies: 1 :: Views: 1429
My project is to creat a digit code for 6 employer everyone has his own code
the 6 code should be stored in EEPROM in the pic 16F877
on code is composed of 4 number taken from keypad so the system is to enter the code if it s not one of the codes which was (...)
Microcontrollers :: 08.05.2011 20:33 :: lordmag :: Replies: 1 :: Views: 1052
Can anybody plz help me in displaying a number (3 digit number) stored in a variable(consider int val)??? The variable keeps getting decremented every second and i need to display it every second!!!
Microcontrollers :: 13.03.2013 15:38 :: Wesley90 :: Replies: 2 :: Views: 99
Thanks for the solutions guys but now I'm curious... is ther a possible way to divide a number like 117 into 3 digits (1, 1 & 7) and add them together (1+1+7) to get 9? in code that is.
Maybe you didn't get it, but artem's code does what you ask.
Perhaps you understand another approach (in my opinion not as pretty th
PC Programming and Interfacing :: 14.11.2003 06:14 :: Gorilla :: Replies: 10 :: Views: 3742
16 functions with PIC16F870 and 4 digit LED display with Source
1. Logic Probe
2. logic pulser
3. Frequency Counter
4. Event Counter
6. Diode Junction Voltage
7. Capacitance Measurement
8. Signal Generator (500hz )
9. Video Patern ntsc
10. Serial Ascii
11. Midi Note
Hobby Circuits and Small Projects Problems :: 19.04.2004 23:16 :: tanveerriaz :: Replies: 0 :: Views: 1384
Who can help me with some link or source code for 32 bit division routine , written on C.
I need to devide 32 bit digit on 16 bit digit number (the result is 16 bit digit). I found many routines, but on assembler.. can somebody help me with C routine?
Microcontrollers :: 02.11.2004 14:19 :: luben111 :: Replies: 5 :: Views: 1559
I hv made my circuit which would generate 16 bit data/second using 82c55 port accessing IC. I want this data to be displayed on monitor using Visual Basic code. Please send me the code.
1st 8 bits would be minutes and after 1/2second 2nd 8 bits would arrive on port, those would be seconds.
In first 8 bits,
Hobby Circuits and Small Projects Problems :: 31.01.2005 04:06 :: sonizindagi :: Replies: 3 :: Views: 1374
If u r using a 'C' compiler, you can directly use the following algorithm:
1) Value = ((High order byte) * 256 ) + (Low Order byte)
2) Create a 16 bytes buffer array in the uC RAM area
3) Use the sprintf() function to format the result and send it to your RAM buffer.
4) Send the buffer contents to your LCD service routine. This buffer will be
Microcontrollers :: 08.08.2005 07:24 :: Bus Master :: Replies: 2 :: Views: 1417
Bear in mind that your display has 40 chars in one line (first 16 visible and others 24 hiden to the right)
You start writing from address 10H (your 90H means : Set DD RAM address to 10H)
The length of your string is 30 chars (Hello, How r u? I am fine here), which means that "n" from 'fine" is in fact the 40th , the last char on
Microcontrollers :: 06.12.2005 20:01 :: silvio :: Replies: 4 :: Views: 959
10 digit of hex file should i send those to my controller
where are those 10 digit ?
as u can see in above hex file first some digit r only some information regarding hex file
I can see only an unfinished list of a hex file with missing record type 01=End of File
Here is your dissasembled code for partial h
Microcontrollers :: 22.01.2006 14:40 :: silvio :: Replies: 9 :: Views: 1962
Here is a solution assuming you have 32 bit integers.
The result you want is called BCD (Binary coded Decimal) meaning each decimal digit is represented by a binary number, in this case a binary integer.
int val = b2 * 65536 + b1 * 256 + b0;
const int NUM_BCD = 8; // ffffff = 16,777,215 : 8 bcd digits max
int aBCD = new int
Microcontrollers :: 19.09.2006 10:43 :: newelltech :: Replies: 4 :: Views: 1504
hi,u can look for either ip cores or look for libraries which allow u to write code for ur operations by including them,two such are available under ieee_proposed libraries.
fixed point and floating point packages.
u will find these in this board.
i hope this helped u.
PLD, SPLD, GAL, CPLD, FPGA Design :: 29.11.2007 04:53 :: vinodkumar :: Replies: 5 :: Views: 1270
i'm trying to display result of a simple math calcultation on 5-digit 7-segment display.
my display code is absouletly correct. but problem is in math equation.
I'm using 89c52 controller and doing coding in Keil C51.
here's the part of code which isn't working properly:
unsigned long int result;
result = 16.80*100;
Microcontrollers :: 26.12.2007 00:14 :: garg29 :: Replies: 1 :: Views: 481
I want to display Big Numbers on 2x16 lcd module with PIC microcontroller. I have code in basic for 4x16 line but i am not sure how it is working.
Microcontrollers :: 06.03.2008 23:38 :: dani :: Replies: 4 :: Views: 1081
I have to translate one 128-bit-long number (witch is stored in 16 separate bytes in an array) to a senary (base 6) 25-byte-long char (ascii) string. I am looking for code consuming the least memory space posible. In fact I wonder that maybe there is a way to do this translation without using at all long data types, extended divisions etc.
Microcontrollers :: 05.06.2008 12:40 :: t_maggot :: Replies: 1 :: Views: 447
Ideally this is how I would break down the problem,
First make a assembly routine that correctly displays a digit given the appropriate number - such as 5 produces a '5' on the LCD
Convert the integer number to a hexadecimal value using assembly - search the net, there are several examples.
By using integer division extract the digits in t
Microcontrollers :: 16.03.2009 11:07 :: Slayerza :: Replies: 3 :: Views: 2436
To move to the next instruction with the 16F series you can use $+1, but for the 18F which uses 2 byte addressing you must use $+2.
That bcd example uses a lot of $ instructions you must correct - I usually replace them with goto / labels then the code is compatible with either series.
Microcontrollers :: 30.03.2010 13:39 :: wp100 :: Replies: 5 :: Views: 1185
you have 16 bit ADC so your range is 0-FFFF (0-65535) so you need only 5 digit 7-segment display
to display it
1> convert the hex code to decimal
2> break this in to individual fig (e.g. 12345 to 1,2,3,4,5) and save it in different reg.
3> write code to interface 5 digit 7-seg. display in MUX fashion
4> convert the (...)
Microcontrollers :: 22.04.2010 02:55 :: piyush manavar :: Replies: 3 :: Views: 999
There's a lot of confusion in your code. hex2dec doesn't work because you apply atoi() on numeric values, but it only works
for null terminated ASCII strings. Furthermore, I don't see the purpose of applying atoi(). The digit array contains already
the numeric values, that can be output to your display.
Microcontrollers :: 03.05.2010 01:50 :: FvM :: Replies: 5 :: Views: 1307
I have some project in school and I need some help. So project is make an asm code (asemmbly code)for 4 digit x 7-segment(4 digit multiplexed 7-seg) some thing like I have to control digits by PORTC (bits 0,1,2,3) and control segment's leds by PORTB (B0,...,B7), by using timer0 overflow interrup and (...)
Microcontrollers :: 25.05.2010 12:20 :: qamishlo :: Replies: 2 :: Views: 648
this might help you
START: MOV DPTR,#TABLE ;Set the first address segment code table
MOV R0,#00H ;R0 keep count
MOV P2,#00H ;digital Display initialization
S1: INC R0 ;Plus 1 count
CJNE R0,#100,S2 ;Determine whether the maximum count
S2: JB P3.7,$ ;Wait for button
Microcontrollers :: 06.02.2011 10:27 :: santoshaxl :: Replies: 1 :: Views: 2265
IDE: MikroC Pro
Oscillator: XT 20Mhz
Hi everyone, I am not new to electronic forums but I just registered with recently with this forum hoping that there will be some who will enlighten me regarding my problems which cannot be solved on other forums.
First, to explain my project, I
Microcontrollers :: 01.03.2011 09:30 :: thir13enth :: Replies: 12 :: Views: 2023
If you need to format an integer or float value to send to a display, you can use the sprintf function that is defined in stdio.h.
unsigned int value = 22;
char buffer; /* size of line on display */
sprintf(buffer, "Value is %d", value); /* Same formatting o
Microcontrollers :: 03.03.2011 03:23 :: btbass :: Replies: 8 :: Views: 425
8 bit or 16 bit?
here is an 8 bit routine:
;* "bin2BCD8" - 8-bit Binary to BCD conversion
;* This subroutine converts an 8-bit number (temp) to a 2-digit
;* i.e 0x15 becomes 0x21
;* result in temp
;.def tBCD = r21 ;a
Microcontrollers :: 09.03.2011 18:58 :: ctownsend :: Replies: 1 :: Views: 2221
the time and date are in BCD format - check that you are decoding them correctly
e.g. I use this for an MCP79410 RTC
// convert a BCD value to decimal, e.g. 0x41 to 41
unsigned char BCDtoDec(unsigned char hex)
return (hex >> 4) *10 + (hex & 0x0f);
Microcontrollers :: 07.04.2011 06:31 :: horace1 :: Replies: 8 :: Views: 1152
Here is pic16F72 based volt meter with 16*2 digit
Microcontrollers :: 17.03.2012 11:14 :: pnjbtr :: Replies: 6 :: Views: 2121
I wrote the asm for a Timer some years ago.
I did the counting in binary & when the timer was stopped, I then converted the binary to BCD using arithmetic.
I can post the code if you wish.
The TMR0 prescale can be set to 1:1 by assigning the prescaler to the WDT (even though you may not be using the WDT).
However, I think (without reall
Microcontrollers :: 20.10.2011 23:03 :: ljcox :: Replies: 2 :: Views: 327
I have this list of projects but i am finding no way to implement any one of thes so any one can help me out to make any one of these projects.....i have to submit it in few must be of university student level..
1. Data Storage Devices
2. Integrated Circuits (IC) Manufacturing Steps
3. Registers & its Types
4. digital Stop Watch
Electronic Elementary Questions :: 15.12.2011 18:12 :: faryal :: Replies: 0 :: Views: 1763
Ok I was working with a PC motherboard and found some of these radial PHT type electrolytic capacitor ,what I found weird is that the marking on them is with 3 digit code like SMD electrolytic capacitor ,for example "221 16V" i.e.. 220 micro farad 16 volt...
Did you people came across these kind of marking on a radial PHT type electrolytic capac
Electronic Elementary Questions :: 11.01.2012 10:33 :: debjit625 :: Replies: 3 :: Views: 451
A quick Google reveals this Maxim chip and Pic assembler code for 16 seven segment leds, if you are prepared to pay its price; not cheap, but perhaps a lot cheaper than other methods using multiple
Microcontrollers :: 09.04.2012 16:33 :: wp100 :: Replies: 12 :: Views: 690
hi can anyone help me out to solve the issue in multiplexing 7 seg led using pic 16f83....
its a 10min timer counts from 0 00 to 9 59
i got output but the numbers are fluctuating...
i attached code and proteus design file....
Microcontrollers :: 18.06.2012 03:08 :: vinay bs :: Replies: 7 :: Views: 542
I have written the code to display the data register after converting the adc value but the lcd is displaying some garbage value (for example 0x1D4 in lcd) . i don't know how to convert the hex value into ascii . can any one please help me ?
Thanks in advance
Microcontrollers :: 13.10.2012 09:16 :: kodi.sudar :: Replies: 27 :: Views: 1146
I'm working on a circuit to control the water pump based on DTMF code and cellphone.
But the DTMF section is not working properly.
While sending the DTMF code, pin # 11 to 14 is on high and no change in state and pin # 16 is at low state.
This is the case for all DTMF codes which we are sending.
Kindly see the circuit and (...)
Analog Circuit Design :: 12.03.2013 12:50 :: jithinnandan :: Replies: 1 :: Views: 378
I am making an IMU for 6DOF which has L3G4200D 3-Axis digital Gyroscope.
I've checked so many Blogs, Forums, Application notes and have programmed accordingly to get the proper reading/information from my gyro.
Though I am very near to solve it - a single problem has made me mad since last two nights!
I've 16 bit digit - 1 sign
Microcontrollers :: 17.03.2013 07:09 :: Jigar 4 Electronics :: Replies: 1 :: Views: 278
Its a good job some of us still do Assembler !:smile:
A couple of sites for useful utilities is a sub routine to convert the 8 bits to ascii 2 digits.
If you look at that site there is
Microcontrollers :: 07.07.2013 12:39 :: wp100 :: Replies: 9 :: Views: 177