Have you ever looked in the sample programs installed with the compiler ?
Maybe there is something there.
Search found 166 matches
- 15 Jul 2023 10:20
- Forum: mikroBasic PRO for PIC General
- Topic: TCP/IP Mikrobasic PIC Example I Need
- Replies: 4
- Views: 589
- 12 Jul 2023 19:06
- Forum: mikroBasic PRO for PIC General
- Topic: PIC16F877A Reset due to UART functions
- Replies: 2
- Views: 349
Re: PIC16F877A Reset due to UART functions
If the controller does a reset then something is wrong with the circuit.
Try a baud rate of 9600. As written it must not make a reset because then something is wrong with the circuit.
Try a baud rate of 9600. As written it must not make a reset because then something is wrong with the circuit.
- 05 Jul 2023 13:59
- Forum: mikroBasic PRO for PIC General
- Topic: Wrong read EEPROM address! (Solved)
- Replies: 2
- Views: 421
Re: Wrong read EEPROM address!
Hello
Take a break of 30ms between the write commands.
Take a break of 30ms between the write commands.
- 26 Mar 2023 13:38
- Forum: mikroBasic PRO for PIC General
- Topic: How to convert integer to bytes
- Replies: 3
- Views: 525
Re: How to convert integer to bytes
Code: Select all
sub procedure Conversion()
dim a as integer
dim b as byte
dim c as byte
a = 2565
IntToHex(a, text) ' correct result, but in string format
xxx = ..... ?
b = hi(a) ' 0x0A
c = lo(a) ' 0x05
end sub
- 01 Feb 2023 20:41
- Forum: mikroBasic PRO for PIC General
- Topic: I block on Oled display SSD1306 with Mikrobasic
- Replies: 2
- Views: 651
Re: I block on Oled display SSD1306 with Mikrobasic
Hello
It does not work that way. you have to write your own program for i2c.
You can't just change a few lines of code to make it work.
What kind of display is it anyway?
Best regard Peter.
It does not work that way. you have to write your own program for i2c.
You can't just change a few lines of code to make it work.
What kind of display is it anyway?
Best regard Peter.
- 20 Mar 2022 21:22
- Forum: mikroBasic PRO for PIC General
- Topic: RTC, I2C and example mikroE
- Replies: 6
- Views: 1482
Re: RTC, I2C and example mikroE
In which folder do you find this demo code ?
I don´t find the code on my computer.
I don´t find the code on my computer.
- 19 Mar 2022 19:10
- Forum: mikroBasic PRO for PIC General
- Topic: RTC, I2C and example mikroE
- Replies: 6
- Views: 1482
Re: RTC, I2C and example mikroE
Hello Delete this line: I2C1_Wr(0x80) ' write $80 to REG0 (pause counter + 0 sec) And now the write code is correct. But what is that ? I2C1_Start() ' issue start signal I2C1_Wr(0xD0) ' address DS1307 I2C1_Wr(0) ' start from word at address 0 I2C1_Wr(0) ' write 0 to REG0 (enable counting + 0 sec) I2...
- 13 Aug 2021 09:38
- Forum: mikroBasic PRO for PIC General
- Topic: How to become a good Microcontroller programmer
- Replies: 1
- Views: 678
Re: How to become a good Microcontroller programmer
Hello Learning by doing. Here on this sides you can find any books for PIC. You learn most in the forum. Simply post your project here and other users can tell you what you can do better. There are also other pic forums. You can also ask there. A German forum is www.pic-microcontroller.de Still succ...
- 24 May 2021 14:16
- Forum: mikroBasic PRO for PIC General
- Topic: bytetostr not working?
- Replies: 2
- Views: 849
Re: bytetostr not working?
Hello
DIM Command not in Main.
Start with dim and then the main programm.
Well.
DIM t as Byte [3]
MAIN:
.... and so on
DIM Command not in Main.
Start with dim and then the main programm.
Well.
DIM t as Byte [3]
MAIN:
.... and so on
- 14 Jan 2020 15:07
- Forum: mikroBasic PRO for PIC General
- Topic: I2C Scanner
- Replies: 2
- Views: 1074
Re: I2C Scanner
Hello
What do you want ? You search the startadress from your chip ?
Or whiche adress do you want ?
Look at this side.
https://pic-projekte.de/forum/viewtopic.php?f=4&t=74
What do you want ? You search the startadress from your chip ?
Or whiche adress do you want ?
Look at this side.
https://pic-projekte.de/forum/viewtopic.php?f=4&t=74
- 23 Dec 2019 18:48
- Forum: mikroBasic PRO for PIC General
- Topic: Interrupt issue with PIC16F1705
- Replies: 6
- Views: 1913
Re: Interrupt issue with PIC16F1705
I miss this command in your program.
TMR1IE_bit= 1
TMR1IE_bit= 1
- 22 Sep 2019 13:14
- Forum: mikroBasic PRO for PIC General
- Topic: Error in I2C
- Replies: 1
- Views: 817
Error in I2C
I use mikrobasic pro 7.5 with PIC 18F4525.
The program is:
And the error message is in the picture.
if i take an other 18F microcontroller it is the same error.
Why ? And what can i do ?
The program is:
Code: Select all
program test03
main:
'CMCON = 7
ADCON0 = 7
ADCON1 = 15
I2C1_Init (100000)
I2C1_Start
end.
if i take an other 18F microcontroller it is the same error.
Why ? And what can i do ?
- 30 Jul 2019 13:27
- Forum: Development Boards
- Topic: READ code from PIC12F1840 (EasyPIC v7)
- Replies: 5
- Views: 1634
Re: READ code from PIC12F1840 (EasyPIC v7)
Hello
Yes i can repoduce this mistake.
Only in PIC12F1840 is this mistake.
Other Pics are all correct programming.
Yes i can repoduce this mistake.
Only in PIC12F1840 is this mistake.
Other Pics are all correct programming.
- 26 Jul 2019 09:40
- Forum: Development Boards
- Topic: The 8th generation of the EasyPIC development board is ready
- Replies: 8
- Views: 2463
Re: The 8th generation of the EasyPIC development board is r
Ah yes i see it.
And when cames the universal programmer and debugger for PIC over USB-C and WiFi ?
And when cames the universal programmer and debugger for PIC over USB-C and WiFi ?
- 25 Jul 2019 13:32
- Forum: Development Boards
- Topic: The 8th generation of the EasyPIC development board is ready
- Replies: 8
- Views: 2463
Re: The 8th generation of the EasyPIC development board is r
And where is the codegrip for pic ?