Search found 127 matches
- 19 Mar 2015 19:43
- Forum: mikroC PRO for dsPIC30/33 and PIC24 General
- Topic: Problems with flash program
- Replies: 3
- Views: 2274
Re: Problems with flash program
Hi in mikroc a int is 2byte. how you should increment the address is described below. From the flash lib help dsPIC30: Erasing can be done only in 32-instructions (64 addresses, 96 bytes) memory blocks. This means that the block start address should be a multiply of 64 (i.e. have 6 lower bits set to...
- 16 Mar 2015 21:47
- Forum: mikroC PRO for dsPIC30/33 and PIC24 General
- Topic: Problems with flash program
- Replies: 3
- Views: 2274
Re: Problems with flash program
Hi I think the problem is the variable holding the address you use int should be unsigned long. int addr_flash = 0x006500; try this instead. unsigned long addr_flash = 0x006500; void save_calibration2(void){ unsigned long addr_flash = 0x006500; //añado el x00 unsigned int *valor= cal; int i; for (i=...
- 09 Mar 2015 21:22
- Forum: mikroC PRO for dsPIC30/33 and PIC24 General
- Topic: USB CDClass
- Replies: 0
- Views: 1506
USB CDClass
Hi Does anybody know how to check if last transmission has been sent. My problem is that i need to send out data every 10ms, what i see is that only the last transmission or so arrive in the terminal. Any solution is better than current one. Not actual code but an example of how i need to do. for( i...
- 16 Apr 2014 10:44
- Forum: Visual TFT General
- Topic: Problem loading image.
- Replies: 7
- Views: 4148
Re: Problem loading image.
Hi
i changed to a different SD card and now it works as it should.
i changed to a different SD card and now it works as it should.
- 01 Jul 2013 15:13
- Forum: Visual TFT General
- Topic: Problem loading image.
- Replies: 7
- Views: 4148
Re: Problem loading image.
HiMegahurts wrote:Hi PeterA,
Can you post what image format you are using please? .jpg, .bmp?
Not sure if it makes a difference with the Eve HW, but pretty sure it would be asked anyway.
Mhz.
Currently it´s a small 24bit bmp 15*11 pixels.
- 01 Jul 2013 09:02
- Forum: Visual TFT General
- Topic: Problem loading image.
- Replies: 7
- Views: 4148
Problem loading image.
Hi The problem is as follows, i can see the picture correctly if i choose to store it in flash, But if i try to use external storage on a MMC card i only get this logga.jpg I think the MMC is working as it should, i can create a file with text and if i place the MMC card in my pc i can open and read...
- 16 Mar 2012 07:34
- Forum: mikroC PRO for PIC General
- Topic: Strange Lcd_Out Behavior
- Replies: 7
- Views: 2248
Re: Strange Lcd_Out Behavior
Hi
Can you post your code?
Try to null terminate your strings
Can you post your code?
Try to null terminate your strings
Code: Select all
const unsigned char hello[]={"Hello\0"};
- 15 Mar 2012 20:30
- Forum: mikroC PRO for PIC General
- Topic: How to read data from lcd using mikroc
- Replies: 15
- Views: 6811
Re: How to read data from lcd using mikroc
Hi uart_rd = uart_read(); in the above line uart_rd is variable or array uart_rd should be a variable of type char ie one byte since uart_read() return a char "a value between 0-255". a string is a set of bytes one/character, array is a set of bytes ie the same. The constant Peter in the code is als...
- 15 Mar 2012 16:14
- Forum: mikroC PRO for PIC General
- Topic: How to read data from lcd using mikroc
- Replies: 15
- Views: 6811
Re: How to read data from lcd using mikroc
Hi Maybe this helps to show how to play with strings. Note this is not tested, only to show static unsigned char last_name[20]; unsigned char name[20]; unsigned char cnt; for( cnt=0; cnt<20; cnt++ ) { name[cnt]= get_key(); // Get keystrokes and put them in array if( name[cnt] == \n ) { // do until n...
- 13 Mar 2012 07:41
- Forum: mikroC PRO for PIC General
- Topic: PIC 18F Interrupts
- Replies: 4
- Views: 2001
Re: PIC 18F Interrupts
Anyone know about "simultaneous" interrupts ? Is the Rising Edge seen by the hardware and "stored" somewhere until I re-enable Low Priority interrupts, so it then immediately triggers the interrupt routine, or is it lost ? After all, when I exit the interrupt routine the INT2 signal could be sittin...
- 07 Mar 2012 11:31
- Forum: mikroC PRO for PIC General
- Topic: pic12f629
- Replies: 8
- Views: 4322
Re: pic12f629
Hi
i think need pull down resistors on s2 & s3
i think need pull down resistors on s2 & s3
- 01 Mar 2012 14:05
- Forum: mikroC PRO for PIC General
- Topic: Need help 18f2431 BLDC driver
- Replies: 9
- Views: 3439
Re: Need help 18f2431 BLDC driver
while(tmsecs1 < 10); if(SW_START == 0) { while(SW_START == 0); tmsecs1 = 0; while(tmsecs1 < 10); if(SW_START == 1) { mode_select= ALIGNMODE; // Try to change your code, do somethin like this set a flag and in isr call the function } } } Reentrancy can be a pain some times But if you get this it mea...
- 01 Mar 2012 12:57
- Forum: mikroC PRO for PIC General
- Topic: (Help) pic18f4550 keypad USB
- Replies: 4
- Views: 3107
Re: (Help) pic18f4550 keypad USB
my lcd seems to have some problem, sometimes it works fine but sometimes it display junk. It usually happens when i try to power my breadboad from a USB but less problem if i power up from pickit 2. Any idea what is wrong?? CMCON |= 7; // Turn off comparators Delay_ms(50); // Some delay to let disp...
- 01 Mar 2012 10:45
- Forum: mikroC PRO for PIC General
- Topic: pic12f629
- Replies: 8
- Views: 4322
Re: pic12f629
Hi void main() { CMCON = 0; // disable comperators OSCCAL = 111111; // calibrate internal osilator TRISIO0_bit = 0 ; // GPIO.0 is an output TRISIO1_bit = 0 ; // GPIO.1 is an another output TRISIO2_bit = 1 ; // GPIO.2 is an input TRISIO4_bit = 1 ; // GPIO.4 is an another input GPIO = 000000; while (1...
- 29 Feb 2012 12:30
- Forum: mikroC PRO for PIC General
- Topic: Need help 18f2431 BLDC driver
- Replies: 9
- Views: 3439
Re: Need help 18f2431 BLDC driver
Hi
Try to change name of interrupt routines.
fromto
Try to change name of interrupt routines.
from
Code: Select all
void interrupt_TIMER5(void)
void interrupt_low_priority_TIMER1(void)
Code: Select all
void interrupt()
void interrupt_low()