Search found 23 matches
- 17 Jan 2020 18:57
- Forum: mikroC PRO for PIC General
- Topic: PIC16F19156 UART problem
- Replies: 7
- Views: 2056
Re: PIC16F19156 UART problem
Thank you for your help! I honestly dont know what was the problem. I already made the UART program myself from scratch. I tried your solution it kinda worked as well. It can't write. Then I tried to use this code, now it works... Mindblown! :) sbit LED at LATC0_bit; // Assign LED to RC0 bit sbit LE...
- 17 Jan 2020 10:39
- Forum: mikroC PRO for PIC General
- Topic: PIC16F19156 UART problem
- Replies: 7
- Views: 2056
PIC16F19156 UART problem
Hi guys! I have a problem, I hope somebody could help me. I trying to use RS232 comm on a PIC16f19156 nicrocontroller, but no luck. UART1_write works fine, but I can't read anything with UART1_Read. Te controller uses HFINTOSC at 32 MHz. The mikroprog debugger wont work with this uC so no luck there...
- 22 May 2018 12:49
- Forum: mikroC PRO for PIC General
- Topic: PIC16f19176 UART init problem
- Replies: 7
- Views: 2215
Re: PIC16f19176 UART init problem
Dear janni ! Thank you very much for your advice, it worked for UART2 as follows: const register unsigned short int TX9D = 0; sbit TX9D_bit at TX2STA.B0; const register unsigned short int TRMT = 1; sbit TRMT_bit at TX2STA.B1; const register unsigned short int BRGH = 2; sbit BRGH_bit at TX2STA.B2; co...
- 18 May 2018 10:12
- Forum: mikroC PRO for PIC General
- Topic: PIC16f19176 UART init problem
- Replies: 7
- Views: 2215
Re: PIC16f19176 UART init problem
Hello! Thank you for your advice! By the way, could you tell me, how to look inside built in routines? I've tried to do that, but I've failed. I thought that it is impossible. And, yeah, you are right, I can make my own routine, but I try to have this problem investigated by the developers, since it...
- 16 May 2018 16:14
- Forum: mikroC PRO for PIC General
- Topic: PIC16f19176 UART init problem
- Replies: 7
- Views: 2215
PIC16f19176 UART init problem
Hi guys! I think, i found a bug in the compiler. -Or I've missed something. I trying to make a program to a PIC16f19176 MCU wich would send adc data on UART to a PC. My problem is that the compiler can not compile, and the problem seems to be the uart init. "undeclared identifier BRGH" So I think th...
- 24 Aug 2016 16:15
- Forum: mikroC PRO for PIC General
- Topic: PIC16F1787 Config words mismatch
- Replies: 7
- Views: 3374
Re: PIC16F1787 Config words mismatch
Thank you wery much!
By the way, do you have any information about the corrupt config words in this case?
I've manually made the correct line of the HEX file, and that way it works flawlessly, but it is a real pain to edit the hex file every once i rebuild my code.
Regards,
Viktor
By the way, do you have any information about the corrupt config words in this case?
I've manually made the correct line of the HEX file, and that way it works flawlessly, but it is a real pain to edit the hex file every once i rebuild my code.
Regards,
Viktor
- 25 Jul 2016 12:20
- Forum: mikroC PRO for PIC General
- Topic: PIC16F1787 Config words mismatch
- Replies: 7
- Views: 3374
Re: PIC16F1787 Config words mismatch
Another problem: OPA3CON is NOT defined in the compiler. I tried the OPA2CON + 2 asm code, but it didn't work. Any thoughts?
- 23 Jun 2016 08:53
- Forum: mikroC PRO for PIC General
- Topic: PIC16F1787 Config words mismatch
- Replies: 7
- Views: 3374
PIC16F1787 Config words mismatch
Dear developers! Maybe I found a problem with the MikroC Pro for PIC copmiler. I tried to compile a project to my PIC16f1787 microcontroller. The compalination went right, but I got a problem, when I tried to flash the microcontroller. I used the MPLab IPE to flash the controller, but, I've got an e...
- 09 Mar 2015 19:49
- Forum: User Projects
- Topic: using a DHT11 with PIC 16F876 and LCD
- Replies: 4
- Views: 9915
Re: using a DHT11 with PIC 16F876 and LCD
Hi! Have you tried to check if the oscillator works? I see you use a crystal for the job, but my experiences saying, you should give it a try. A simple led blinking program should do the trick. Can you share more info about your problem? Is the LCD work? You just can't recieve data from the sensor? ...
- 02 Nov 2013 11:46
- Forum: mikroC PRO for PIC General
- Topic: PIC16F1823 I2C
- Replies: 9
- Views: 5697
Re: PIC16F1823 I2C
Hello!
I was trying to set up I2C comm between two PIC16f1823 microcontrollers. They running at 32 MHz 8 Mhz crystal and 4x PLL.
Regards
Viktor
I was trying to set up I2C comm between two PIC16f1823 microcontrollers. They running at 32 MHz 8 Mhz crystal and 4x PLL.
Regards
Viktor
- 31 Oct 2013 07:06
- Forum: mikroC PRO for PIC General
- Topic: PIC16F1823 I2C
- Replies: 9
- Views: 5697
Re: PIC16F1823 I2C
Hi! I only said that the RC0 RC1 is not used for UART, while I set theese to RA0 RA1. So it isn't the problem. I want to use RC0 and RC1 as I2C. And here is the problem. The code founded in MikroC-s help not working, I measured the lines with scope and no changes, const 5V. With this AppNotes progra...
- 29 Oct 2013 19:26
- Forum: mikroC PRO for PIC General
- Topic: PIC16F1823 I2C
- Replies: 9
- Views: 5697
Re: PIC16F1823 I2C
Hi!
I'm sorry, i forget to rewrite comments... So I use RC0 and RC1 bits for I2C
And, yeah, I used the Datasheet when I rewroted the AN code
Best Regards
Viktor
I'm sorry, i forget to rewrite comments... So I use RC0 and RC1 bits for I2C
Code: Select all
APFCON = 0b10000100;
Best Regards
Viktor
- 28 Oct 2013 19:41
- Forum: mikroC PRO for PIC General
- Topic: PIC16F1823 I2C
- Replies: 9
- Views: 5697
Re: PIC16F1823 I2C
Hi! Here is the schematic (it only contains the I2C wiring): http://www.kepmegoszto.com/201310281926/526eac46c3235-wiring.html I'm not even recieving any interrupts. I rewrite a code founded in an AN. With that i have an interrupt, but no data transfer. Here they are: MASTER: #define RX_ELMNTS 32 //...
- 25 Oct 2013 11:39
- Forum: mikroC PRO for PIC General
- Topic: PIC16F1823 I2C
- Replies: 9
- Views: 5697
PIC16F1823 I2C
Hi there! I have a problem with MikroC 6.0 and PIC16F1823. I'm trying to use I2C but it's not working. I use the example code from Help, but the I2C lines are constant 5V. Here is my code: void main(){ ANSELA = 0; // Configure AN pins as digital I/O ANSELC = 0; PORTA = 0; TRISA = 0; // Configure POR...
- 24 Oct 2013 20:40
- Forum: mikroC General
- Topic: PIC 2 PIC Master/Slave Communication using I2C... Enjoy
- Replies: 41
- Views: 109859
Re: PIC 2 PIC Master/Slave Communication using I2C... Enjoy
Hello! I'm also trying to use I2C master-slave comm between two PIC16F1823 microcontrollers, but i never get interrupt. Can you please check my codes, and help me out? Thanks a lot! /*********************** *TÁJÉKOZÓDÁSI STRATÉGIA* * ÉS IRÁNYÍTÓ ESZKÖZ * * FEJLESZTÉSE * *LÁTÁSSÉRÜLTEK SZÁMÁRA * * PI...