Search found 69 matches

by absalom
04 Jan 2016 22:04
Forum: mikroC PRO for PIC General
Topic: Why to wait 20ms after an EEPROM write?
Replies: 6
Views: 2516

Re: Why to wait 20ms after an EEPROM write?

Thank you very much for clarification!
by absalom
04 Jan 2016 18:21
Forum: mikroC PRO for PIC General
Topic: Why to wait 20ms after an EEPROM write?
Replies: 6
Views: 2516

Re: Why to wait 20ms after an EEPROM write?

Thank you for your quick reply. @filip: Do you believe that it is appropriate to insert a delay of 20ms instead of applying IstvanK's recommendation? Why do you require a delay after an EEPROM read? @IstvanK: I've checked the assembly code of the EEPROM_Write lib function. This function triggers the...
by absalom
03 Jan 2016 22:28
Forum: mikroC PRO for PIC General
Topic: Why to wait 20ms after an EEPROM write?
Replies: 6
Views: 2516

Why to wait 20ms after an EEPROM write?

Wish you a Happy New Year! In the help text (v6.5.0) of the EEPROM library I found ' Ensure minimum 20ms delay between successive use of routines EEPROM_Write and EEPROM_Read. Although PIC will write the correct value, EEPROM_Read might return an undefined result. ' This 20ms rule could be interpret...
by absalom
26 Feb 2015 22:34
Forum: mikroC PRO for PIC General
Topic: Mikro C unable to compile example
Replies: 9
Views: 3034

Re: Mikro C unable to compile example

Have you enabled the libraries SPI and SPI_Ethernet in the Library Manager?
by absalom
27 Jan 2014 19:42
Forum: mikroC PRO for PIC General
Topic: Using USB Lib in bootloader and application
Replies: 2
Views: 1210

Re: Using USB Lib in bootloader and application

Mea culpa! Thank you for the hint android. I corrected it in my code (and in the original post). This change makes the fault behaviour now more reproducable. Always when I jump to my application (old USB conncetion will be closed and new USB connection should be established) my PC notifies: New Hard...
by absalom
26 Jan 2014 15:08
Forum: mikroC PRO for PIC General
Topic: Uart problem with string
Replies: 4
Views: 1755

Re: Uart problem with string

I can see no error in the code. I assume you tried both direction with the PC (PC is sender, PC is receiver)? Did you connect the TXD pin of your sending PIC with the RXD pin of the receiving pin or is there something in between? Which character do you receive? Maybe it is the easiest way to use the...
by absalom
26 Jan 2014 14:57
Forum: mikroC PRO for PIC General
Topic: Using USB Lib in bootloader and application
Replies: 2
Views: 1210

Using USB Lib in bootloader and application

Hello, I want to write an application with a bootloader. The bootloader itself (reading IntelHex File and writing to Flash) works without problems: unsigned char readbuff[64] absolute 0x500; // Buffers should be in USB RAM unsigned char writebuff[64] absolute 0x540; unsigned char user_prog absolute ...
by absalom
06 Jan 2014 18:04
Forum: mikroC PRO for PIC General
Topic: changing delay when using UART1_Write
Replies: 6
Views: 2168

Re: changing delay when using UART1_Write

Thank you very much for the interesting approach!
by absalom
04 Jan 2014 18:23
Forum: mikroC PRO for PIC General
Topic: Uart problem with string
Replies: 4
Views: 1755

Re: Uart problem with string

You could try your program with a PC and not with a second Microcontroller in order to find out if the bug is related to transmit or receive. Then show us the according C code.
by absalom
04 Jan 2014 18:17
Forum: mikroC PRO for PIC General
Topic: changing delay when using UART1_Write
Replies: 6
Views: 2168

Re: changing delay when using UART1_Write

janni wrote:Precise transmission start is not a general requirement of the eBUS - just instantaneous response to SYN byte.
That is correct.
janni wrote:This may be done with hardware UART module of a PIC, though not in a regular way and may be not worth the compilcations.
How could this be done with the PIC UART?
by absalom
01 Jan 2014 19:15
Forum: mikroC PRO for PIC General
Topic: Unusual problem.
Replies: 9
Views: 3980

Re: Unusual problem.

In the else branch a delay command is missing - could that be the problem?
by absalom
01 Jan 2014 19:07
Forum: mikroC PRO for PIC General
Topic: changing delay when using UART1_Write
Replies: 6
Views: 2168

Re: changing delay when using UART1_Write

Thank you for your feedback. I solved it now with a SW UART (btw: I don't need back-to-back transmission but I need a dedicated answering time. That means when I receive a specific byte I have to answer in this dedicated time. It is needed for the eBUS protocol). Nevertheless with the SW UART it wor...
by absalom
29 Dec 2013 23:29
Forum: mikroC PRO for PIC General
Topic: changing delay when using UART1_Write
Replies: 6
Views: 2168

changing delay when using UART1_Write

Dear all, I see a changing delay between call of UART1_Write and the first falling edge of the start bit between 100µs .. 400µs. For the measurement I used an oscilloscope and the following code (16F887, 8MHz internal clock, 2400 baud; no interrupts used): PORTD.F0 = 0; UART1_Write(0x37); It is ensu...
by absalom
18 Apr 2011 17:07
Forum: mikroC PRO for PIC General
Topic: Comparing characters problem on AT commands
Replies: 17
Views: 4740

Re: Comparing characters problem on AT commands

Sorry, but I don't understand the problem. I thought you see the response with the hyperterminal program. Please explain again the problem.. and hopefully a PDU expert has mercy :-)
by absalom
18 Apr 2011 10:29
Forum: mikroC PRO for PIC General
Topic: Comparing characters problem on AT commands
Replies: 17
Views: 4740

Re: Comparing characters problem on AT commands

are you really sure that the expected answer is "AT\n\rOK\n\r" and not "AT\nOK\n"?

Go to advanced search