Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.
i am using CCS pic compiler.
i want to use serial programming.
can someone send me the code in which i will simply send 16 bit int and receive to another MCU (PIC16F886).
thanks in advance.
i am using this code to transmit . it transmits properly but receiving is creating proble...
i am using mikro C for AVR.
how can i test or edit a bit in a variable int?like i have an 8 bit int "reg" and i want to make bit5 of "reg",hi. or i want to check the bit 5 is hi or low, for both cases, what i have to do? help please.
i want to use pic18f182550 for USB communication.
Actually i want to generate my own data stream.
I have a joy pad which is USB. first i want to analyse the data, comes from joy pad by pressing several buttons on it then i want to generate same data stream by PIC18F2550.
for analyzing, i...
when i put the value 0x7543 in an "int16", in RAM that is shown as it is. But
when i put 0x7543 in float, it gives an other 32 bit value in RAM which is "866A8D"
what does it mean?
an i want to calculate trigonometry like
cos45*sin90... etc. (in degrees)
how can i do it ?
urgent help is needed
I have used CCS and mikroC as PIC compiler.
now i am going to use AVR studio as AVR C compiler.
In beginning i am facing a problem about #define.
How can i define port as label like i want to use portb.0 as LED output.
when i write #define LED PORTB.0 it makes error.
what is the right way...
i simply need to convert decimal (8 bit) to hex in CCS. In mikroC, that is so easy to convert by using "bcd2dec" built in function. but in CCS i think there is no any function like that so how can i do?
i am using RTC DS1307 with pic16f887.
using very common code for mikro c, avilable on net.
when i run the code on debugger, "read_time" routine sticks on "I2C1_start();"
can anybody help?
// LCD module connections
sbit LCD_RS at RB3_bit;
sbit LCD_EN at RB2_bit;
i want to perform some trigonometric functions in mikroC like get the value of sin90, cos30 etc.
i wrote this code but when i run it and watch RAM, values are not correct.
even when i do it with float, incorrect values occur.
void calculate (void)
how can i use any thermal serial printer with ATMEGA8?
from where i can get data of printer?
is there standard data format to be print in all thermal printers which r used in banks for qmatic systems?
i just want to know that which data will print which sized and font of characters.
i work in assembly language with pic16f887
i want to use ROM as readable memory.
like i have used with DPTR in 8051.
what are DB and DT in PIC16?
how can i use ROM with DB or DT direactive for making long lookup table?
i am not very new in assembly. but i am wondering that why i cant solve this very very simple I/O problem.
i want to use portc,2 and portc,3 as input an portc,4 and portc,5 as output and a simple delay.
(other all ports are set for their jobs)
when portc2 will hi, portc4 will lo...
i want to get 16 bit data from timer/counter1 (as event counter) to portb and c in CCS.
how can i do it?
i did it by timer 0 as counter.
i am using 16f676 with assembly language. i want to make PWM based lamp dimmer.
for this purpose, i have to use 2 interrupts. external int and timer 1 interrupt.
can i use both? when external interrupt will wake, timer1 will start, make a port hi. when it will turns off by overflowing, will...
i m facing the following message problem
pic16f887 in mplab using debugger tool mplabsim.
in assembly language.
someone is saying that this is related to "PCLATH"
i couldnt understand that.
help is needed
how and where i have to program or enter in pclath register or any...
pc to mcu interface via usb
I want to Interface any micro controller (pic or avr) with PC via usb.
I want to make an app on any suitable software through which i will turn on or off relays, display ADC value (voltage from temp sensor or any source) on PC monitor.
Please note that i work on...
urgent help is needed please
i am facing the problem that in my software (in assembly language).
i am using timer interrupt in 16f72. there is some calculation which is done by w reg.
during calculation, when timer interrupt occurs, the value of w reg is disturbed.
when w reg goes to work for...
i m trying to interface DS1307 with AT89S51
but the problem is, i successfully write the time in RTC but fail to read.
i checked on proteus.
i use this protocol for reading
start (release start bit)
device add. (send device add. #0D0h)
get byte (send clock only and get data...
i m using pic12f508 by assembly language.
a strange thing is, its datasheet tells that there is no any "TRIS" reg. in this. but when i run MPLAB 8, TRIS reg shows but when i want to mov data in it by following syntax, it shows error when building.
i m using kiel uvision3
in a51 mode with 8052 mcu.
i want to use timer 2
but wen i write
i doesnt accept
and show it as error
can anybody help me
thanks in advance