Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

Search found 1923 matches
www.mcselec.com Forum Index
Author Message
  Topic: UTF-8 to ASCII in a string
kimmi

Replies: 6
Views: 907

PostForum: BASCOM-AVR   Posted: Wed Feb 15, 2017 5:25 pm   Subject: UTF-8 to ASCII in a string
hi,
The Nextion HMI lcd i have added ISO 8859-15 so all chars are working with this code
  Topic: UTF-8 to ASCII in a string
kimmi

Replies: 6
Views: 907

PostForum: BASCOM-AVR   Posted: Wed Feb 15, 2017 11:48 am   Subject: UTF-8 to ASCII in a string
Hi,

The "normal ASCII" did not work for me on lcd
S : THOR GÖRANS - FREDAG I KÖPENHAMN

Z : THOR GRANS - FREDAG I KPENHAMN

but you'r code was simple, so i change it and now it runs fine f ...
  Topic: UTF-8 to ASCII in a string
kimmi

Replies: 6
Views: 907

PostForum: BASCOM-AVR   Posted: Mon Feb 13, 2017 2:45 pm   Subject: UTF-8 to ASCII in a string
Hi,
For a webradio i sent raw metadata via comport to mcu to display it on Nextion HMI lcd
metadata is in raw UTF-8 so i need to convert UTF-8 to ascii

it works but is there a better / faster w ...
  Topic: Problem with I2C-Testprogram
kimmi

Replies: 2
Views: 425

PostForum: BASCOM-AVR   Posted: Fri Feb 10, 2017 7:53 pm   Subject: Problem with I2C-Testprogram
PCA9555
A0 A1 A2 to gnd
pin 13 --- button --- gnd

$hwstack = 32
$swstack = 32
$framesize = 40
  Topic: EEPROM 93C HELP
kimmi

Replies: 31
Views: 2265

PostForum: BASCOM-AVR   Posted: Fri Feb 10, 2017 6:53 pm   Subject: EEPROM 93C HELP
An update about 93C46

I used $regfile = "m48def.dat"
$crystal = 8000000
$hwstack = 32
$swstack = 32
$framesize = 32

'AT93C46D-PU > '64x16 PIN ORG to VCC * PIN 8 VCC * P ...
  Topic: EEPROM 93C HELP
kimmi

Replies: 31
Views: 2265

PostForum: BASCOM-AVR   Posted: Fri Feb 10, 2017 2:17 pm   Subject: EEPROM 93C HELP
Hi,
no need for more than thanks !

but you can allways find me in my [url=http://www.royalsystems.dk/chat/]chat if I'am online
  Topic: Analog clock SSD1289 3.2" 240x320 Test
kimmi

Replies: 9
Views: 3023

PostForum: Share your working BASCOM-AVR code here   Posted: Fri Feb 10, 2017 4:09 am   Subject: Analog clock SSD1289 3.2" 240x320 Test
Adding a other analog clock code was used for ESP8266 changes to bascom
  Topic: EEPROM 93C HELP
kimmi

Replies: 31
Views: 2265

PostForum: BASCOM-AVR   Posted: Thu Feb 09, 2017 1:53 pm   Subject: EEPROM 93C HELP
Hi,
This forum is about Bascom not VB
i think i helped you on the right track
so you can finish your project
a little bit of reading will do the rest for you
  Topic: EEPROM 93C HELP
kimmi

Replies: 31
Views: 2265

PostForum: BASCOM-AVR   Posted: Wed Feb 08, 2017 6:34 pm   Subject: EEPROM 93C HELP
the Inputbin will wait for 3 bytes
1 byte = address (dim as byte)
2 bytes = data (dim as word) = 2 bytes


????? send message
from terminal program or other mcu ?

if other mcu its : ...
  Topic: EEPROM 93C HELP
kimmi

Replies: 31
Views: 2265

PostForum: BASCOM-AVR   Posted: Wed Feb 08, 2017 11:50 am   Subject: EEPROM 93C HELP
did you read help for inputbin ?

Dim Address As Byte , My_data As Word
Do
Inputbin Address , My_data
'setup sent data
My_93c46 = W_93c46
Shift My_93c46 , Left , 6
...
  Topic: EEPROM 93C HELP
kimmi

Replies: 31
Views: 2265

PostForum: BASCOM-AVR   Posted: Wed Feb 08, 2017 12:45 am   Subject: EEPROM 93C HELP
You can try like this:

$regfile = "m8def.dat"
$crystal = 8000000
$hwstack = 32
$swstack = 32
$framesize = 32
$baud = 9600


Cs Alias Portc.0
Config Portc.0 = Output
Pin_in Alias ...
  Topic: EEPROM 93C HELP
kimmi

Replies: 31
Views: 2265

PostForum: BASCOM-AVR   Posted: Tue Feb 07, 2017 8:45 am   Subject: EEPROM 93C HELP
to write you set address and my_data


Address = 1 '<<< the address to write
My_data = 600 '<<< your data to sent
'setup sent data
My_93c46 = W_93c46
...
  Topic: EEPROM 93C HELP
kimmi

Replies: 31
Views: 2265

PostForum: BASCOM-AVR   Posted: Mon Feb 06, 2017 4:04 pm   Subject: EEPROM 93C HELP
Hi,

read data will be 4000 + count_x
4000 to 4063

i have just placed an order and added few 93c46 8-dip

when i get them i try to make the code read/write
it will take a few days before ...
  Topic: EEPROM 93C HELP
kimmi

Replies: 31
Views: 2265

PostForum: BASCOM-AVR   Posted: Fri Feb 03, 2017 9:30 pm   Subject: EEPROM 93C HELP
Tnx MWS

MSB first right ! so shift all to left


Dim Read_enable As Word
Read_enable = &B1001100000000000
Shiftout Pin_out , Sck , Read_enable , 1 , 9 , 40

Do
For Count = 1 To 6 ...
  Topic: EEPROM 93C HELP
kimmi

Replies: 31
Views: 2265

PostForum: BASCOM-AVR   Posted: Fri Feb 03, 2017 12:39 pm   Subject: EEPROM 93C HELP
here is a test for 64x16

And i made wrong setup in overlay
be cause of the 3+6 for w/r + address and forgot to add data sent


here is a test new with VAR long and shift data to long

' ...
 
Page 2 of 129 Goto page Previous  1, 2, 3, ... 127, 128, 129  Next
All times are GMT + 1 Hour
Jump to: