Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

Search found 1210 matches
www.mcselec.com Forum Index
Author Message
  Topic: EEProm problem
Paulvk

Replies: 2
Views: 129

PostForum: BASCOM-AVR   Posted: Fri Oct 22, 2021 1:51 am   Subject: EEProm problem
I use a Eram Array for such variables.
This makes it easy to read the default as it is a variable.

If you are use to Arduino code you have to read more of Bascom's help
because Bascom does a lot ...
  Topic: MCS Bootloader for ATMEGA168P
Paulvk

Replies: 11
Views: 253

PostForum: BASCOM-AVR   Posted: Sat Oct 02, 2021 9:01 am   Subject: MCS Bootloader for ATMEGA168P
The data sheet says 1024 words = 0xC00 same as the Mega88 so it seems so.
Regards Paul
  Topic: MCS Bootloader for ATMEGA168P
Paulvk

Replies: 11
Views: 253

PostForum: BASCOM-AVR   Posted: Sat Oct 02, 2021 1:38 am   Subject: MCS Bootloader for ATMEGA168P
Have you set the boot loader address with the $loader instruction to the fuse setting
eg 1024 words = 0xC00 512 = 0xE00 256 =0xF00 128 = OxF80

Note the Mega328 is 1024 words = 0x3C00

Regards ...
  Topic: overlay - MWS
Paulvk

Replies: 12
Views: 409

PostForum: BASCOM-AVR   Posted: Fri Sep 24, 2021 5:47 am   Subject: overlay - MWS
I did this with the webserver code I created a 250 character string and overlaid the bytes as you have done,
I needed to pull bytes from the wiznet chip , once the bytes were put into the overlay I ...
  Topic: LCD Powertip Init?
Paulvk

Replies: 5
Views: 212

PostForum: BASCOM-AVR   Posted: Sat Sep 04, 2021 1:22 am   Subject: LCD Powertip Init?
Why not use the I2C library and a PFC8574 adapter
Note you can have up to 8 LCDs connected this way using 2 pins of the mcu.
There is also a library to use a 128x64 graphical display with I2C.
http ...
  Topic: Nextion and Bascom
Paulvk

Replies: 51
Views: 3955

PostForum: BASCOM Project Blog   Posted: Sun Jun 27, 2021 5:31 am   Subject: Nextion and Bascom
I have written a document to try and make it easier to understand how the reparse mode works
and how to use the timers as sub programs. It also has a lot of comments and instructions on how
to use ...
  Topic: Nextion and Bascom
Paulvk

Replies: 51
Views: 3955

PostForum: BASCOM Project Blog   Posted: Fri May 21, 2021 5:35 am   Subject: Nextion and Bascom
Now since I have had some more time to get back to the Nextion
and learn more of its code I have improved the CRC generator
it no longer uses EEprom here is updated code and a hmi file
that has th ...
  Topic: MCP23017 I2C Graphic LCD Adapter Library
Paulvk

Replies: 4
Views: 577

PostForum: Share your working BASCOM-AVR code here   Posted: Sun May 09, 2021 4:26 am   Subject: MCP23017 I2C Graphic LCD Adapter Library
Many thanks Very Happy
This opens the micros with smaller numbers of pins for use with displays that use to
consume nearly all the pins with very little left to be of use.
Again Many thanks
  Topic: Bascom 2083
Paulvk

Replies: 12
Views: 746

PostForum: BASCOM-AVR   Posted: Sat Apr 17, 2021 7:48 am   Subject: Bascom 2083
If you search the forum for problems windows 10 there are things to do first
I do not have 10 but have seen a number of posts.
  Topic: Question of 'AN #118 - I2C LCD and Keboard library'
Paulvk

Replies: 7
Views: 582

PostForum: BASCOM-AVR   Posted: Wed Mar 24, 2021 9:50 am   Subject: Question of 'AN #118 - I2C LCD and Keboard library'
It would have been nice to have an I2C library using two PCF8574s for the basic graphic displays these use a lot of pins.
The bugs may explain some of the intermittent odd things I have experienced. ...
  Topic: Nextion and Bascom
Paulvk

Replies: 51
Views: 3955

PostForum: BASCOM Project Blog   Posted: Mon Mar 22, 2021 7:05 am   Subject: CRC16 generator
Here is code that generates CRC16 for a string you first have to run the
previous program once to put the characters ! to ~ in the eeprom
(Note if you use other characters you will need to add the ...
  Topic: Interrupt overflows being missed?
Paulvk

Replies: 29
Views: 1276

PostForum: BASCOM-AVR   Posted: Sat Feb 27, 2021 10:21 am   Subject: Interrupt overflows being missed?
"One interrupt can't occur while another is occurring"

This is correct.
  Topic: how entering sleep mode
Paulvk

Replies: 32
Views: 1183

PostForum: BASCOM-AVR   Posted: Mon Jan 04, 2021 11:15 pm   Subject: how entering sleep mode
Noisy relays !
Have you put diodes across the coils ?
Have you also put 100nF capacitors across the coils.
Relay contacts can be a source of noise.

Can you publish your project for others there ...
  Topic: how entering sleep mode
Paulvk

Replies: 32
Views: 1183

PostForum: BASCOM-AVR   Posted: Mon Jan 04, 2021 1:12 am   Subject: how entering sleep mode
Have you thought about using flip flops to drive the relays
you could then turn off everything but the relays and flip flops.
Regards Paul
  Topic: Nextion and Bascom
Paulvk

Replies: 51
Views: 3955

PostForum: BASCOM Project Blog   Posted: Mon Dec 14, 2020 6:30 am   Subject: Get ASCII
I have been working to make sending to the nextion faster.
So to do this you need to just send the data to the display
and then process on the display to put in the boxes
but we need error checking ...
 
Page 1 of 81 Goto page 1, 2, 3 ... 79, 80, 81  Next
All times are GMT + 1 Hour
Jump to: