Search found 11 matches

by boletus
15 Sep 2010 18:43
Forum: mikroC PRO for PIC General
Topic: SPI communication question
Replies: 7
Views: 2794

SPI communication question

Hi to all, I purchased a small RF module, based on transceiver chip with registers to set via SPI. Every 1-byte command transmitted to the chip makes a simultaneous status byte response so I use the following code (not the actual code of my project): unsigned char SendCommandToChip (unsigned char cm...
by boletus
10 Jun 2010 15:00
Forum: mikroC General
Topic: 23K256 SRAM interfacing problem
Replies: 5
Views: 3608

Re: 23K256 SRAM interfacing problem

Hi nikosxan!

I left that project but now I'll try your solution. Much appreciated!
by boletus
01 Jun 2010 17:07
Forum: mikroC PRO for dsPIC30/33 and PIC24 General
Topic: trouble setting up SPI through PPS
Replies: 3
Views: 2691

Re: trouble setting up SPI through PPS

EDIT: Solved, I dumbly used physical pin numbers as arguments instead of remappable pin numbers despite it was clearly written in the manual :roll: Hi, I'm in the same shoes like the OP. The clock is at 10 MHz, FOSCSEL=0x0002, FOSC=0x0086, as suggested by Slavisa. I can see no blue LED's blinking w...
by boletus
31 May 2010 21:35
Forum: mikroC PRO for PIC General
Topic: simple programe for LCD, but not working.
Replies: 27
Views: 7551

Re: simple programe for LCD, but not working.

Sorry if I wasn't clear enough. Type means the manufacturer and the 'name' (or codename or whatever) of your LCD. Any info I can use to find a datasheet to check your LCD panel.
by boletus
30 May 2010 20:28
Forum: mikroC PRO for PIC General
Topic: simple programe for LCD, but not working.
Replies: 27
Views: 7551

Re: simple programe for LCD, but not working.

Could you post the type of your LCD display?
by boletus
30 May 2010 16:45
Forum: mikroC PRO for PIC General
Topic: simple programe for LCD, but not working.
Replies: 27
Views: 7551

Re: simple programe for LCD, but not working.

@mrauf57

What is the type of the LCD controller? As far as I know mE library is made for HD44780 only.
by boletus
13 May 2010 17:01
Forum: mikroC PRO for dsPIC30/33 and PIC24 General
Topic: Strange UART behaviour
Replies: 6
Views: 2587

Re: Strange UART behaviour

It looks like the problem is solved, thank you Tihomir! I changed the crystal to 7.3728 MHz and selected XT w/PLL 8x and 16x and your code (and mine also) is working nicely. However I don't know what was wrong :? Before that I used a 10 MHz one with HS. Still very strange and doesn't feel too comfor...
by boletus
10 May 2010 16:54
Forum: mikroC PRO for dsPIC30/33 and PIC24 General
Topic: Strange UART behaviour
Replies: 6
Views: 2587

Re: Strange UART behaviour

All right, this is more than weird. I can't get working this UART module even with the most simple code. It gives me garbage all the time. :( :( :( :( :( :( :( :( :(

May I ask somebody to send me a tested, working hex file for a dsPIC30F2011 UART example? It would be greatly appreciated.
by boletus
28 Apr 2010 16:07
Forum: mikroC General
Topic: 23K256 SRAM interfacing problem
Replies: 5
Views: 3608

23K256 SRAM interfacing problem

Hi to all, I would like to interface a 18F252 with a 32K SRAM modul 23K256 via SPI. For level shifting on SCK , SI , CS I use the following voltage dividers: PIC pin----3K3----to 23K256 pin---5K2----GND For SO , I connected directly on the PIC's SDI pin. The VCC of the SRAM module is 3.3V and I conn...
by boletus
15 Apr 2010 10:10
Forum: mikroC PRO for dsPIC30/33 and PIC24 General
Topic: Strange UART behaviour
Replies: 6
Views: 2587

Re: Strange UART behaviour

:cry: After extensive googling it looks to me that I'm not the only one with this type of behaviour. Seems there are some glitches with the UART implementation of the compiler. Can somebody confirm that? It would be a real pain because the mikroC PRO dsPIC IDE looks awesome and I wouldn't mind if I ...
by boletus
14 Apr 2010 10:00
Forum: mikroC PRO for dsPIC30/33 and PIC24 General
Topic: Strange UART behaviour
Replies: 6
Views: 2587

Strange UART behaviour

Hi to all, and greetings from me! I'm evaluating uC Pro for dsPIC right now and I've got some strange behaviour with UART1. The MCU is dsPIC30f2011 working @10x4 MHz. I'm using the code below. My problem is that it isn't working correctly. It should bounce back the byte I send but acts like this eve...

Go to advanced search