Quantcast
Channel: MCS Electronics Forum
Browsing all 20688 articles
Browse latest View live
↧

Share your working BASCOM-AVR code here : HONEYWELL HIH-6130/21 Humidity...

Okay I found my stupid mistake, temp & humidity mixed up. HIH6130_6131_Install_50061154-3-EN_Final_24Oct11.pdf details what's going on with protection this part. Here is my code, it gives the same...

View Article


BASCOM-AVR : how to assembled a three bye array in one data type : REPLY

Hello Aliahmad Bascom can convert it for you First you need a variable big enough to hold the bits as you have 24 you need a Long (Longs are stored as signed 32-bit binary numbers) so dim Xyz as long...

View Article


BASCOM-AVR : how to assembled a three bye array in one data type : REPLY

Another tip: Dim ... at and Overlay [code:1:3936753bd7]dim value as long dim r_data(4) overlay at value R_add = &H17 Call R_chip(r_add) Locate 2 , 2 Lcd "VRMS = " ; Hex(r_data(1)) ; Hex(r_data(2))...

View Article

BASCOM-AVR : Strange problem SPI and RS232 dosnt work togeather : REPLY

Where is your SPI code? Without them I cound not give any tips.....

View Article

BASCOM-AVR : Create Excel File on SD Card Problem! : NEWTOPIC

Hi i have an MicroSD Card and i can work with it well. i can create an Excel file too. but i want to make hirizontal tab on the my Excel file, but i can't. i used from below ASCii code in the...

View Article


BASCOM-AVR : how to assembled a three bye array in one data type : REPLY

Hello Robert7x Hex will not work if its TWO's compliment and negative with odd numbers of bits that are not full bytes which I have with 12 & 14 bits. I am going to write a full example with...

View Article

BASCOM-AVR : Create Excel File on SD Card Problem! : REPLY

Show me the raw data, open the file with [url=http://www.chmaas.handshake.de/delphi/freeware/xvi32/xvi32.htm]XVI32[/url] Then you can see if there's an ascii(9) or that excel is messing it up.

View Article

BASCOM-AVR : Create Excel File on SD Card Problem! : REPLY

thanks Evert i had a mistake! i used from Print instead of Write! now i use from Write and it work nice.

View Article


BASCOM-AVR : MQTT : REPLY

Thanks BEN, I will try to translate it to Bascom Basic. I invite you to take a look at www.mqtt.org i know you will be interested. Best regards Georges

View Article


BASCOM-AVR : Create Excel File on SD Card Problem! : REPLY

other problem! how can i write a var on my favorite Excel Cell? for example i want to write "100" on C5 Cell Address. or i want to when i open my Excel File again write "100" in the right Cell. i used...

View Article

BASCOM-AVR : HTRC110 with XMEGA : REPLY

I took a quick look at this NXP part, HTRC110 , it uses a SPI interface, so not sure why you need interrupts. Sounds like you need to re-read through the xmega documention about pin interrupts, since...

View Article

BASCOM-AVR : Create Excel File on SD Card Problem! : REPLY

Hi, Looks as if write is adding a carrage return to the end of the first line. Maybe try copying everything into one string then just writing the string in one go. Or use "put" to output to the file....

View Article

BASCOM-AVR : Find out if bootloader is present in flash : REPLY

Hi Neil, Thanks for your idea. If I got it right, the BL writes to a certain EEPROM address a known value. The Main application check for this value in that particular EEPROM address, to verify the BL...

View Article


BASCOM-AVR : how to assembled a three bye array in one data type : REPLY

Thanks for all answered my question. But I am still confused How to convert a 3 byte value as 24 bits which is in array. I am able to display this value by lcd command keep all 3 byte in array side by...

View Article

BASCOM-AVR : Strange problem SPI and RS232 dosnt work togeather : REPLY

OK Robert7x The SPI code is here As I declare the sub Declare Sub R_chip(r_add As Byte) Here is the sub Sub R_chip(r_add As Byte) Reset Ss Spiout R_add , 1 ' Recieving the address from call and...

View Article


BASCOM-AVR : Create Excel File on SD Card Problem! : REPLY

thanks for your reply. yes, write adding a carriage return to end of each line. and the other hand i use from PUT in Binary mode too. but seems it can't write a correct value in Excel file!...

View Article

BASCOM-AVR : Create Excel File on SD Card Problem! : REPLY

Hi, Your first write is adding a carrage return to the end of the line. You'll Need to use put for all writes to the file. Regards Ian Dobson

View Article


BASCOM-AVR : Create Excel File on SD Card Problem! : REPLY

[quote:fd6b3e3432]Your first write is adding a carrage return to the end of the line[/quote:fd6b3e3432] my means was that PUT can't write correct data to the file. i change my code. but it don't work!...

View Article

BASCOM-AVR : how to assembled a three bye array in one data type : REPLY

[quote:4e89ce276d]I am able to collect one register of one old metering chip ADE7753 it is a 24 bit signed value, I am storing it in three byt array. 1- My question is how I can assembled it in one...

View Article

BASCOM-AVR : Create Excel File on SD Card Problem! : REPLY

Hi, Put writes the raw values to a file, so you Need to convert the value to a string first, then write the string to the file with put. Try reading the bascom help text. Regards Ian Dobson

View Article
Browsing all 20688 articles
Browse latest View live