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.
Hi btbass,
Thanks for your contribution. I think the srprintf() works only in native C. In mikroc most of this functions have been changed and assigned different names/identifications. Not like in CCS C compiler which is almost similar to native C.
The temp calculation I think I am right. I get...
Hi all,
I am new in mikro-c compiler. I am trying to read temperature values and pass it to rs232 for logging. In my code, I am able to do so through UART1_WRITE() or even UART1_WRITE_TEXT(). I can out-put text well through UART1_WRITE_TEXT() though. Like UART1_WRITE_TEXT("test"). Data sent is...
Thank you for reply. I am using CCS C compiler and I have just noticed that they don't have compiler support for 16F628 adc module. Hitech looks good too. Can you write for me a sample code in hitech that gets temperature from maybe LM35 attached to AN0 and transmit it via rs232? I am using 4mHz...
I am trying to read temperature values from a LM35. This is how my code is arranged
//************************************************************
// Function: Temperature logger: UART at 9600 baud
// Processor: PIC16F628 at 4 MHz using internal RC oscillator
// Hardware: K4
// Software: CCS...
Thanks you all. I finally go it work. There was some power fluctuation maybe because of the connections. This guide is helped me alot https://www.oz1bxm.dk/PIC/16F628-UART-test.htm. arunsharma0731 thanks for your suggestion on the calculator. It is something I find useful in future programing.
I tried using the 10uf in place of 1 uf. Still got the same problem. Edit my code to produce PIC16F only and no change. What is the purpose of the 100n capacitor from the vcc to ground. I am using 1uf instead. Got the idea from some circuit. What is it supposed to do? Tried adding some clock...
With reference to the PIC16F628 example from https://www.oz1bxm.dk/PIC/628uart.htm, I have managed to setup the circuit has indicated in the circuit diagram. I am familiar with CCS C programming and hence I used the C code to generate the hex file.
The problem is that I don't get the signal...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.