Well, yes it couldn't be more simple.
Thanks for your help,
Regards
Search found 362 matches
- 26 Mar 2023 17:17
- Forum: mikroBasic PRO for PIC General
- Topic: How to convert integer to bytes
- Replies: 3
- Views: 526
- 26 Mar 2023 12:14
- Forum: mikroBasic PRO for PIC General
- Topic: How to convert integer to bytes
- Replies: 3
- Views: 526
How to convert integer to bytes
Ok, simple question (who knows). Example: I have an integer value of 2565 which should be converted into hex (not hex string), result is 0x0A05. So in code it would be like: sub procedure Conversion() dim a as integer dim b as byte dim c as byte a = 2565 IntToHex(a, text) ' correct result, but in st...
- 13 Mar 2023 16:19
- Forum: mikroBasic PRO for PIC General
- Topic: Slave modbus RTU
- Replies: 1
- Views: 492
Re: Slave modbus RTU
Ok, smal progress. I am able to get response from slave device, link of example data in the code below. A lot of work still has to be done...converting: float to IEEE457 4 bytes, integers to 2 bytes: packing bytes into array preparred for UART1_Write... Any participation is more then welcome... prog...
- 10 Mar 2023 10:07
- Forum: mikroBasic PRO for PIC General
- Topic: Slave modbus RTU
- Replies: 1
- Views: 492
Slave modbus RTU
Hello, I manage to modify UART example code to recive 8 bytes from master correctly. Now I need to send some bytes back to master. The question is how to pack all bytes together into slave's message and then send this message to master. Your help would be verry appreciated. Regards, Vlado Slave mess...
- 08 Jan 2019 16:18
- Forum: mikroBasic PRO for PIC General
- Topic: janni 5000+ posts
- Replies: 3
- Views: 1377
Re: janni 5000+ posts
+ 1
Thanks
Thanks
- 03 Jan 2019 13:33
- Forum: mikroBasic PRO for PIC General
- Topic: generating sound with pic
- Replies: 2
- Views: 933
Re: generating sound with pic
I don't see any image with code?
- 25 Dec 2018 09:35
- Forum: mikroProg™ programmer and debugger
- Topic: mikroProg firmware update problem
- Replies: 3
- Views: 2101
mikroProg firmware update problem
So, I made mistake with upgradig of the firmware, is there any chance to get back working status of the mikroProg?
After action I got message: Connected development tool is not supported in mikroProg Suite for PIC
Regards
After action I got message: Connected development tool is not supported in mikroProg Suite for PIC
Regards
- 24 Dec 2018 13:21
- Forum: mikroProg™ programmer and debugger
- Topic: MikroProg firmware update fail
- Replies: 18
- Views: 16377
Re: MikroProg firmware update fail
Hello, I am facing exactly the same problem as other users here. Updating firmware of the MikroProg gives a result "the connected development tool is not compatible with mikroProg Suite for PIC". Would you be so kind to help me to solve this issue?
With best regards,
Vlado
With best regards,
Vlado
- 10 Dec 2018 20:07
- Forum: mikroBasic PRO for PIC General
- Topic: PIC18F458 - PORTA settings?
- Replies: 2
- Views: 1015
Re: PIC18F458 - PORTA settings?
Thanks janni, you are right as usually. Somehow I manage to mix A3 and A4.
Regards
Regards
- 10 Dec 2018 16:34
- Forum: mikroBasic PRO for PIC General
- Topic: PIC18F458 - PORTA settings?
- Replies: 2
- Views: 1015
PIC18F458 - PORTA settings?
Hello to all, PORTA.0 - analog input with Vcc and Vss as voltage references and it works ok PORTA.4 - digital input - it doesn't work Port A init: CMCON = 7 TRISA = %00110001 ADCON0.CHS0 = 0 ' A0 analog input ADCON0.CHS1 = 0 ADCON0.CHS2 = 0 ADCON1.PCFG3 = 1 ' only A0 analog input, rest digital ADCON...
- 26 Nov 2018 18:11
- Forum: mikroBasic PRO for PIC General
- Topic: Question for software specialists
- Replies: 2
- Views: 1113
Re: Question for software specialists
Many thanks for your help. You were absolutelly right, so far I have everything on my protoboard and a lot of capacitors are there but obviously not enough.
Adding two more solve the problem.
With best regards
Adding two more solve the problem.
With best regards
- 25 Nov 2018 20:14
- Forum: mikroBasic PRO for PIC General
- Topic: Question for software specialists
- Replies: 2
- Views: 1113
Question for software specialists
Hello, I am trying to put together RS485, SoftwareUART and ADC on one CPU, but unlucky so far. Project represents RS485 slave, which controls UPS's hardware through SoftUART. RS485 and SoftwareUART cooperates normal as expected. ADC alone works also ok, but when the code is completed with all of the...
- 14 Oct 2018 16:48
- Forum: mikroBasic PRO for PIC General
- Topic: Conversion of recived data through SoftUART
- Replies: 6
- Views: 1811
Re: Conversion of recived data through SoftUART
Thanks, it work now as expected.
Regards
Regards
- 14 Oct 2018 14:58
- Forum: mikroBasic PRO for PIC General
- Topic: Conversion of recived data through SoftUART
- Replies: 6
- Views: 1811
Re: Conversion of recived data through SoftUART
Thanks janni, I got an error in the line
it says
why code like this isn't ok? it works
Code: Select all
Uin = float(tempw) + float((ord(Buffer_Q1[5])-0x30))/10.0
Code: Select all
128 373 _Buffer_Q1+5 must be of char type SoftUART_UPS_2.mbas
Code: Select all
Uin = float(tempw) + (float(Buffer_Q1[5]-0x30))/10.0
- 14 Oct 2018 08:17
- Forum: mikroBasic PRO for PIC General
- Topic: Conversion of recived data through SoftUART
- Replies: 6
- Views: 1811
Re: Conversion of recived data through SoftUART
Many thanks janni, it works like this. Buffer_Q1[4] is dot and it's place is never changed. sub procedure Display_Q1() Lcd_Cmd(_LCD_CLEAR) ByteToStr(Buffer_Q1[1], txt) var_int = StrToInt(txt) - 48 Uin = (float(var_int)) * 100 ByteToStr(Buffer_Q1[2], txt) var_int = StrToInt(txt) - 48 Uin = Uin + (flo...