# Code 16 Digit

326 Threads found on edaboard.com: Code 16 Digit

## Static LCD Panel Sample Program Code on PIC16F84A

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

## Need general guidelines for using 8051 controller

; This is a simple algorithm and its 8051 microcontroller implimentation ; to convert binary to BCD . ; Modifications to my code is highly welcomed. If you make changes to this code ; This alorithm I got from following forum ; ------- Date: 19970630 ; ------- From: Brian Trial ; ------- To: Mot-68HC

## How to decode a 16-bit signal in a 5 digit 7-segment display

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

## 16 bit value on 7 segment display

Salam, I have used this code in Big segment counter project. The input is 16 bit number in R2 and R3, And the output is 5 digits in ASCII stored in RAM from 0x30-0x34 ; ; +-------------------------------------------------------------------------+ ; | Purpose: Routine to convert a 16bit binary number in ASCII ; |

## Judging if a year is a leap year in Verilog code

Here is the verilog code! /* leap years are all the years divisible by 4, except that years divisible by 100 are not leap years, but years divisible by 400 are leap years. Encoding the year: binary ? easy for divisible by 4, but difficult for 100 and 400 (not powers of 2) BCD ? easy for 100

## NEWBE NEED HELP ABOUT CONTROLING 6 DIGIT 7 SEGMENT

code sample from ET-JRAVR V1.0 + SDP8 ( ) ;*************************************************************************** ;* APPLICATION NOTE FOR THE CP-JRAVR * ;* * ;* Control Board :CP-JRAVR

## Help me write a code for reading the whole string from GPS

What you need to implement and what will be very handy later is serial port interrupt subroutine. If you don't know how to do this check out this code: Make sure that it is working correctly. To do this connect your ?P ( I assume that you have RS-232 driver such as MAX202, 232 ..) to a PC and start any

## 32 bit hex to ASCII conversion code in Assembly

What you need is a hex -> bcd converter. see and then expand the packed BCD format and add to each number 0x30 so you will get it in the ASCII code. Gomez

## 16 bit Hex to decimal

Is this what you mean? #include #include int main(void) { char hex_string = "2F1C"; int value; value = (int)strtol(hex_string, NULL, 16); /* sscanf(hex_string, "%x", &value); */ printf("%s hex = %d decimal\n", hex_string, value); return 0; } 2F1C hex = 12060 decimal Note, sscanf() w

## How can I calculate area under the curve using Matlab?

I got this from a friend. I hope it helps. Matlab Application - Curve fitting etc. Curve Fitting Let us do some curve fitting. We need a curve. We already have a Bezier curve that we just generated. We will use that curve for some of the exercises. Since we can create the Bezier curve when we want using the script we will work with the

## Help me improve a lexical analyzer C++ code

IMO! It seems to me that you are expecting people to do the work for you. If you want to modify the code for greater efficiency you first need to understand it, well. Then when you do, read as many articles on the subject - then and only then return to the problem and your question will be answered. There?s a book on my shelf called "modern

## Reading PIC Data via COM

Hi, 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 TIA

## 16 segments mapping and ram bank

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

## what is the mistake in --->Bin2Dec code

hi, why is this code is not working? Bin to Dec convertor.... ------------------------------------------------------------------------------------------ int Bin2Dek(long * string) { unsigned long dioda; unsigned int broj = 0; dioda = *string; if(dioda == 1) broj += 1; if(dioda == 1) broj += 2; if(dioda == 1) broj +

## 10 Bit Binary to 4 Digit BCD????????

Hey Everyone! I found a routine on the web that converts 10 bit binary to 4 digit BCD But I think there is a typo because there is a goto b2d2 and the b2d2 isnt listed on the code...... Anyone have an idea where the b2d2 should go???? Any other 10bit to 4 digit bcd routines???? I'm trying to display voltage on an lcd with a pic 16f676 (...)

## Code problems with 16F88

Hi, That diagram looks weird to me. Just make sure you have a 0.1uf cap connected from VDD to VSS (+5v to GND) near your PIC. For the F88 thats from pins 14 and 5. The cap doesn't (or shouldn't) have a polarity so either way around would do. And I'm sure the -5v in that diagram is a mistake, that would mean you're running your PIC from -5 to +

## What does 16-bit BCD adder do ?

hmm....can you xplain it more beter? im having problem on making a VHDL code, coz i dont know the structure.... can you post the structure of it?/ thnx in advance In terms of structure, it's up to the coder. There are many ways to do it. But I feel as though you are seeking HDl code to solve your problem. You can fin

## Help us understand a 8052 code in Assembly

First, while posting codes always use option .. As it is, it is terrible to read .. So, what modifications do you need to make? Regards, IanP

## Looking for documents and sample codes for ADC 16-bits ICL7135

Hi! 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...! Good friend! Please help me!!! :!:

## Converting binary held in two 8 bit registers to bcd 3 digit (0 to 999)

Try this, or browse code on same site. ;)

## How to set the real time in RTC with Assembly code (ds1307)

Hi, In any case you have to set the external address of 24xx to match with the LS three bits of the address byte. I could not find from the data sheet if the five bit control code will change under some conditions, so I suggested you to select an address different from RTC's address, using the external address. So long as the device addresses ar

## need help in this code

On a quick look, the code looks like displaying a three digit number (possibly on a 3-seven segment display). On a closer look: there are 2 functions on the assembly code. 1.) B2_BCD - I think this is a routine to convert a byte to bcd. example: B2_BCD(0x14) = 0x20; This has a subroutine adjBCD 2.) bcdsplit - extracting three (...)

## Motorolla MC68HC11 Microcontroller-to convert a Hex digit.

Well, this is how you do it. I will let you write the code. First of all, clear the upper bits by doing an AND with immediate data 0x0F. Then compare the remaining number with 9. If it's less than or equal to 9, then do an OR with 0x30H and that is the ASCII code. If the number is greater than 9, then subtract 9 and then do an OR with 0x40

## Base 16 to Base 10 in C

GrandAlf, is this the sort of thing your looking for as a general idea int HexToDec(int nNumToConvert) // recursive fn { int nConverted = 0; // Clear this for calculation int nQuotient; int nRemainder; nQuotient = (nNumToConvert / 16); nRemainder = (nNumToConvert % 16); // could use ternary operator '?' but this 'if ...el

## interfacing 7segment 4-digit LED's

hi, u can simply use pic16f877a for this project the prussure sensor output is to be fed to RA0 or any pin of porta. then u enable the A/D converter and convert the analogue signal to digital one. and divide or multiply with the apropriate factor inside the code. after this u send it to 7sig display using portb. the problem is how to c

## Help me convert this code for MikroC Compiler

Pls help me convert this code for MikroC Compiler. I want to do this project but I couldn't understand this code. Operation includes displaying the temperature to 4digit 7 segment, can convert from celcius to farenheit, has LDR (changing the display's contrast). tnx Also, can I change the PIC to 876 instead? i438.photobucket.c

## TEMPERATURE SENSOR CODE NEEDED USING PIC18F452

we are required to setup the PIC18F452 and enable the ADC module to read a temperature sensor uisng PIC...can anyone help to provide the code? thx in advance...

## Change code for 16F628

I am student 14 years old from Thailand.I am very new in MCU. I would like to use Pic 16f628 insted of 16F84. Here is the code. Any body help me to change the code for 16F628. Then I will look&lern how to do. Thank you. Kob kun Krub.:D:D:D ;----------------------------------------------------------------------; ; BINCLK4M.ASM A clock

## Problem with testbench in 16-bit CLA code in VHDL

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) library ieee; use (...)

## What does X"46" represents in VHDL code ?

I am new in Fpga. I am studing vhdl. I saw code like that type CHAR_RAM_TYPE is array(0 to 39) of std_logic_vector(7 downto 0); signal charRAM : CHAR_RAM_TYPE := ( 0=>x"41", 1=>x"6E", 2=>x"64", 3=>x"79", 4=>x"FE", 5=>x"47", 20=>x"31", 21=>x"34", 22=>x"2F", 23=>x"30", 24=>x"36", 25=>x"2F", 26=>x"30", 27=>x"37", others=>x"A0");

## write code for Atmel 89c51 !HELP ME !

your schematic suggests otherwise, very convincingly Means: for save operation, current limiting resistor are required at transistor base and collector terminals. As mentioned below, the circuit doesn't fit the code. The code expects 4 LED segments at P3.2 to P3.5, activated by a "H" output. Your circuit needs P3.6 and P3.7 actin

## How to store values in code memory of 8051 and secure it with password?

I'm under the impression, that there are some misunderstandings involved. The startup code will never clear data stored in flash or eeprom memory area. So you definitely don't need to modify the startup code. I understood, that you intend to assign the non-volatile storage to xdata at 0xE000, but it would refer to external RAM, not flash

## Read 10 bits and 16 bits as an number in MPLAB asm

Hi, Lots of code here for doing such conversions -PIC Microcontoller Radix Math Methods

## EEPROM storing code (list of identification number ] pic 16f877 +lcd2*16 +keypad

hi !!!! 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 (...)

## Convert binary number to Decimal number C code using PIC micrcontroller

Hi everyone can anyone tell me how to convert binary number to decimal value, i just need sample code thanks

## what's wrong with this code? (AVR)

Another note, when you want to check if a button is pressed on not don't use if(PINA==0b11111110) num++; else if(PINA==0b11111101)num--; because the condition you are using needs the complete port to be exactly as specified. If your buttons are in bit 0 and 1 then check only these bits if (!CHECKBIT(PI

## NCO VHDL code. Can anyone suggest any improvements? is it synthesizable?

Hi, please tell me if this can be synthesised. It worked on modelsim student edition. also, the lookup table is quite big. i generated it using matlab. (don't give negative values of n as input. keep the first digit 0. it is signed.) library ieee; use ieee.std_logic_1164.all; use ieee.std_logic_signed.all; use ieee.std_logic

## Check my Code for decoder.. need help!

hi guys.. can anyone help me with my program? I can't get the output working after doing a simulation.. The output in the waveform shows 'U' - uninitialized... here is my program library IEEE; use IEEE.STD_LOGIC_1164.ALL; USE IEEE.STD_LOGIC_UNSIGNED.ALL; entity key_decode is port ( --output from decoder key_out

## hex to dec conversion(16 bit) on microcontroller interfaced with adc

Here is the Conversion Logic:- temp = MYDATA * 2; //MYDATA is the data coming from the PORT of the Controller to which your ADC of 8bit is connected //Conversion Process Starts Here ones = temp%10; temp = temp/10; tens = temp%10; hundreds

## Attiny13 RFID reader to send the code via RS232

It is a design of a system which reads the card code via interface EM4095 with an antenna, decodes, checks and sends it through the serial port. The reader is based on Attiny13. Program takes only 782 bytes. E

## Problem in code to display led! Pleased help.

Hi all, I am programming to convert a c code section into assembly .This is may c code: // display temperature in led if(kt2==1) // { // output_c(0x01); // output_b(maled); // display tens } // else

## need c code for displaying temperature in 7 seg led

Getting code for your exact problem is is a very rare. But there so many ppls working on the same display technologies. You can ask them to facilitate in the same or you can have some sample working product and "reverse engineer" the same. as following sites seems dealing in the same technologies.

## 4 Digit 7 Segment Clock

Hi everyone, I want the assembly code for 4 digit 7 segment digital clock for PIC16F877A microcontroller. The two 7 segment for SECONDS & two for MINUTES. I need the code in assembly language not in C or other language. Im using MPLAB IDE v8.20 for coding & Proteus for designing the interface. Plz help me.

## how to write a mikroc code for ultrasonic sensor

i'm new guy for electronic field i have very ittle knowledge about this side so i want to know how to write a code for ultrasonic sensor using Mikroc plz help me friends

## 7 digit seven segment display

This depends on what the specific 7-segment display is that your using. You need to consult the datasheet for your device to see how to interface to the display. Some displays use SPI, which means that you would need to set up SPI on the PIC in order to communicate. Other displays allow you to use GIOs to communicate with the display; it just depen

## Decimal to Hex Conversion C Code needed

Hello! I need to convert decimal values 0 to 255 to hex. Can somebody please give me the c code for decimal to hex conversion?

I am wrting to here a part of my code , when it run works normally at the red colored section while(1){ LCD_clear; password= InputNumber("Enter Password");//Get the keycode of pressed key if(password==ReadPassFromEEPROM()) {

## [Moved] C CODE TO DISPLAY A NUMBER STORED IN A VARIABLE USING AT89c51/AT89s52

Hi, 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!!!

## BIOS Master Password Generator for Laptops

Here is the Link to Generator, BIOS Master Password Generator for Laptops Enter all letters in Capital Letters Laptop Bios Passwords Mostly all laptops can be unlocked by master password which unique for every laptop Mostly all desktops may be unlocked b

## Source code for digital temperature monitoring system.

Hello! Your problem is apparently just a matter of adapting the new hardware, so if you change only the IO port definitions, then it should work. Now about your code: 1. - You wrote functions like clearrow1 to clearrow4. All these functions have no parameters and their contents just look the same. Why don't you write just a single function clear r