Search found 25 matches

by constructor
13 Sep 2010 17:58
Forum: mikroC PRO for PIC General
Topic: USB to UART bridge using PIC18F4550
Replies: 18
Views: 9093

Re: USB to UART bridge using PIC18F4550

Ok first of all T.Jackson, thanks for wishing me good luck. Now, after whatching the example's code (HID Read Write Test) I reallized that for some reason all the other interrupts are disabled and I'd like to ask why. Are there any conflicts when using extra interrupt handles, except the HIDs? If so...
by constructor
13 Sep 2010 17:36
Forum: mikroC PRO for PIC General
Topic: USB to UART bridge using PIC18F4550
Replies: 18
Views: 9093

Re: USB to UART bridge using PIC18F4550

I think I'm misunderstood... This is not my first project in mikroC PRO. Even in elecronics. I've just never used mikroC PRO for developing USB applications. The truth is that i know few about the USB protocol, but i don't think that this project would be hard to be developed. I'm going to develop t...
by constructor
13 Sep 2010 17:19
Forum: mikroC PRO for PIC General
Topic: USB to UART bridge using PIC18F4550
Replies: 18
Views: 9093

Re: USB to UART bridge using PIC18F4550

Hi T.Jackson and thank you for your quick reply, I'd like to develop a small external device for my iPhone where the the data from the iPhone's USB port will be accessible from an other module that I would like to connect, that uses the UART interface. [iPhone -> USB -> PIC18F4550 -> UART module] I ...
by constructor
13 Sep 2010 17:04
Forum: mikroC PRO for PIC General
Topic: USB to UART bridge using PIC18F4550
Replies: 18
Views: 9093

USB to UART bridge using PIC18F4550

Hello everyone, I'm new in programming pic18f4550 in mikroC PRO, using the HID library and I would like to ask for some help here, getting started with the new project I'd like to develop; a USB to UART bridge. The idea is that any received data from the UART gets transmitted from the USB and any re...
by constructor
26 Jul 2010 14:08
Forum: mikroC PRO for PIC General
Topic: A/D Conversion problem with PIC18F8722
Replies: 2
Views: 1392

A/D Conversion problem with PIC18F8722

Hello everyone, I've tried to achieve A/D conversion with PIC18F8722 without success. I use the MCU card from mikroE and the specific module has worked fine for many other projects so far without problems. I also followed the example in ADC Library (help), so the code created is not much different f...
by constructor
03 Oct 2009 01:25
Forum: mikroC PRO for PIC General
Topic: Variable declared but not used
Replies: 8
Views: 4542

I forgot to mention that when I change the data tables (add some int variables, make static, non-static etc) the code is affected. The microcontroller either acts strangely or if it must transmit data to UART taken from an array, other data are sent to UART or data from other arrays.
by constructor
03 Oct 2009 01:21
Forum: mikroC PRO for PIC General
Topic: PIC18F8722 Double Uart usage and strange behavior.
Replies: 5
Views: 2974

Hi, Can you open the support ticket at http://www.mikroe.com/en/support/ and attach your entire demo project along with all files, describe the error as much as you can, so we can try recreating your error condition. Without the exact code, we cannot be sure if the problem is in UART library or in ...
by constructor
03 Oct 2009 01:18
Forum: mikroC PRO for PIC General
Topic: Variable declared but not used
Replies: 8
Views: 4542

Finally I've found the reason why all my projects with PIC18F8722 are ruined. I created an extremely basic project just to see what's going wrong with the variable declarations. It seems that ROM and RAM are confused in mikroC PRO for the specific PIC. unsigned short k = 0x00, flag = 0x00; unsigned ...
by constructor
02 Oct 2009 16:08
Forum: mikroC PRO for PIC General
Topic: Variable declared but not used
Replies: 8
Views: 4542

Just to understand: if you are not using that variable why does declare it? BR. Hello MARIO, I'm going to use array get[512] to send bytes via UART. This array has to completely change every time before I send all of its data via UART. To be more specific, void main(){ unsigned char k = 0; unsigned...
by constructor
02 Oct 2009 15:50
Forum: mikroC PRO for PIC General
Topic: Variable declared but not used
Replies: 8
Views: 4542

ISL_Dave thank you for your reply. I just did what you suggested me to do (I declared it as unsigned char get[512] = {0x00}) and I don't get this warning any more but now it seems that it's passed in hex output as ROM! I cannot write any data to it but only read from this array. If I declare the arr...
by constructor
02 Oct 2009 14:53
Forum: mikroC PRO for PIC General
Topic: PIC18F8722 Double Uart usage and strange behavior.
Replies: 5
Views: 2974

The code is very simple; void main(){ unsigned char k = 0; UART1_Init(38400); UART2_Init(38400); PORTJ = 0x00; TRISJ = 0x00; delay_ms(2000); while(1){ for(k = 0; k < 255; k++){ UART1_Write(k); } for(k = 255; k > 0; k--){ UART2_Write(k); } delay_ms(1000); } } I get data from UART1 from 0x00 to 0xFE a...
by constructor
02 Oct 2009 14:14
Forum: mikroC PRO for PIC General
Topic: Variable declared but not used
Replies: 8
Views: 4542

Variable declared but not used

Hello everyone, I use PIC18F8722. I try to declare a 512 byte array but with no success. After the compilation I get the following warning; "Variable 'get' has been declared, but not used". The compiler also informs me that 18 bytes out of 3915 are used (1%). I declared the array outside and inside ...
by constructor
02 Oct 2009 02:02
Forum: mikroC PRO for PIC General
Topic: PIC18F8722 Double Uart usage and strange behavior.
Replies: 5
Views: 2974

PIC18F8722 Double Uart usage and strange behavior.

Hello everyone. I'm trying to experiment with the two UART modules that PIC18F8722 has but I faced some strange problems. The program is very simple, I declare an unsigned char and then I initialize the two modules with the same baud rate. After i do this, I send 256 bytes (from 0x00 to 0xFF) to UAR...
by constructor
15 Sep 2009 22:24
Forum: mikroC PRO for PIC General
Topic: PIC and MMC/SD Card hardware connection.
Replies: 4
Views: 3048

Mince-n-Tatties, thank you so much for your information! I really appreciate it.

I was going to connect DATA_OUT to DO for example, so... I saved much time instead of debugging the project.

Thank you for the additional information too!
by constructor
14 Sep 2009 18:24
Forum: mikroC PRO for PIC General
Topic: PIC and MMC/SD Card hardware connection.
Replies: 4
Views: 3048

PIC and MMC/SD Card hardware connection.

Hello everyone, I would like to connect an SD socket I have to a PIC18FXXXX that supports SPI. I've seen the HW connection the MMC library has but there are a few things I have to make clear first. First of all I'm going to run the PIC at 3.3V and not at 5V as the example shows, so I don't know if I...

Go to advanced search