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.
well i want to know if i use PIC18F2550 and attach with barcode scanner via USB and link its UART to computer via RS232 port, can i get the value from scanner to hyper terminal?
If yes, then how can i do it?
any hint to write code in C or even in assembly?
- - - Updated - - -
Can i use USB to...
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;
it shows in RAM is 8.5090 ok?
when it is multiplied to 2*pi/360 (0.01744), answer is 0.1483
where as its answer must be 0.707
- - - Updated - - -
can anyone tell the simplest way to get sin value in degrees?
what does mean by the following?
i got it from help
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)