Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

Search found 651 matches
www.mcselec.com Forum Index
Author Message
  Topic: Grey Code (possible bug / suggestion)
EDC

Replies: 2
Views: 120

PostForum: BASCOM-AVR Archive   Posted: Mon May 25, 2020 11:56 pm   Subject: Grey Code (possible bug / suggestion)
I think this is intended to be used after some code is done.
You can Enable/Disable it in the menu tab Edit->Show Dead Code
Im using it for search unused but Dim`ed variables (reused code copy/pa ...
  Topic: WizNet5100 and webserver
EDC

Replies: 12
Views: 270

PostForum: BASCOM-AVR   Posted: Wed May 20, 2020 11:51 pm   Subject: WizNet5100 and webserver
Hello @królikbest Very Happy (for those from other countries it means best rabbit Very Happy)

My first webserver was builded on MCS Sample and Paulvk very helpful code..
After some time, when device must communi ...
  Topic: ATMega1284P Config TIMER1
EDC

Replies: 3
Views: 125

PostForum: BASCOM-AVR   Posted: Mon May 11, 2020 6:59 am   Subject: ATMega1284P Config TIMER1
If you dont know the proper syntax then you can always type CTRL+SPACE. For example "Config = " then CTRL+SP and so on. After comma hit CTRL+SP again and you get hints like "Compare_a" ... this is eas ...
  Topic: Atmega1284p - OCR3B
EDC

Replies: 1
Views: 135

PostForum: BASCOM-AVR   Posted: Tue May 05, 2020 12:32 pm   Subject: Atmega1284p - OCR3B
In the DAT file for m1284p youll find such [WIO] constans:

COMPARE3A=$98
PWM3A=$98
OCR3A=$98

Like you see they have the same addresses so Compare3a, Pwm3a or Ocr3a means the same.

One ...
  Topic: Wizznet Configurator
EDC

Replies: 1
Views: 234

PostForum: Share your working BASCOM-AVR code here   Posted: Thu Apr 23, 2020 1:17 pm   Subject: Wizznet Configurator
Hello there Very Happy

Today I share some useful, for me, program for configuring Wizznet chips with compatible piece of code for Bascom so config can be be not hardcoded.

https://www.mcselec. ...
  Topic: Watchdog Atmega328
EDC

Replies: 5
Views: 277

PostForum: BASCOM-AVR   Posted: Mon Apr 13, 2020 3:10 pm   Subject: Watchdog Atmega328
Yes it is possible in that uC because you can ENABLE WDT (Watchdog Interrupt). It means that after 8s of sleep Watchdog, instead reset uC, at firs will jump into Watchdog Interrupt. Then you can Reset ...
  Topic: Arduino proMicro connection problems
EDC

Replies: 7
Views: 323

PostForum: BASCOM-ARDUINO   Posted: Wed Apr 08, 2020 7:45 am   Subject: Arduino proMicro connection problems
Cause m32u4 have bullit in support for USB that board dont have any USB to USART converter. Because of that this board should be cheaper...and Arduino IDE add support for this USB firmware to every sk ...
  Topic: Arduino and w5100
EDC

Replies: 8
Views: 214

PostForum: BASCOM-ARDUINO   Posted: Tue Apr 07, 2020 4:16 pm   Subject: Arduino and w5100
I can tell that there is no problem for me to ping in my home network my two currently online devices like W5100 and Wiz850io.
Look at the screens. They both appear in the WNetWatcher from Nirsoft an ...
  Topic: Arduino proMicro connection problems
EDC

Replies: 7
Views: 323

PostForum: BASCOM-ARDUINO   Posted: Mon Apr 06, 2020 7:16 am   Subject: Arduino proMicro connection problems
You should configure external programmer like this screen shows:
https://www.mcselec.com/userpix/22760_leaonardo_config_1.jpg

So you should have Avrdude too.

Once again parameters are : -p atm ...
  Topic: Attention please. Serial terminal ver. 2.0.8.3
EDC

Replies: 8
Views: 599

PostForum: BASCOM-AVR   Posted: Mon Mar 23, 2020 7:26 am   Subject: Attention please. Serial terminal ver. 2.0.8.3
On My Win10 x64 Bascom 2082 Terminal minimize and restores just fine. I test it now couple of times.

https://www.mcselec.com/userpix/22760_terminal_1.jpg

Try open Help->About->App Data Dir ...
  Topic: Problems with Print and Bytematch
EDC

Replies: 16
Views: 464

PostForum: BASCOM-AVR   Posted: Fri Mar 13, 2020 9:40 am   Subject: Problems with Print and Bytematch
Do you saw how I handle communication with Nextion and Atmega? https://www.mcselec.com/index2.php?option=com_forum&Itemid=59&page=viewtopic&p=77756#77756

I handle it like that because S ...
  Topic: adding a null to a string
EDC

Replies: 5
Views: 265

PostForum: BASCOM-AVR   Posted: Tue Mar 03, 2020 9:20 am   Subject: adding a null to a string
For "same characters strings" you can use String function instead, nonefficient here, For-Next loop.
Dim Mystring As String * 40

Mystring = String(10 , 97) ...
  Topic: Using a Timer for Soft clock instead of 32768 kHz xtal
EDC

Replies: 15
Views: 655

PostForum: BASCOM-AVR   Posted: Thu Feb 20, 2020 4:45 pm   Subject: Using a Timer for Soft clock instead of 32768 kHz xtal
You forget to substract one Wink Even Windows Calculator can do that math Very Happy
Value 24999 with Prescaler 64 should work too Wink
https://www.mcselec.com/userpix/22760_win_calc_1.jpg
  Topic: Using a Timer for Soft clock instead of 32768 kHz xtal
EDC

Replies: 15
Views: 655

PostForum: BASCOM-AVR   Posted: Thu Feb 20, 2020 12:07 pm   Subject: Using a Timer for Soft clock instead of 32768 kHz xtal
The formula for OCx is (F_CPU/PRESCALER/FREQ) - 1 because uC will execute interrupt minimum after one tick.
Till now I dont see typo in my example. COMPARE3A should have value 62499 not 6249. Becaus ...
  Topic: system time conversion
EDC

Replies: 13
Views: 410

PostForum: BASCOM-AVR   Posted: Thu Feb 20, 2020 1:44 am   Subject: system time conversion
This is the quote from the Help topic "Syssec". Maybe you dont need to divide but only add or sustract some magic value to/from Bascom Time Very Happy
The Return-Value is in the Range of 0 to 2147483647. 200 ...
 
Page 1 of 44 Goto page 1, 2, 3 ... 42, 43, 44  Next
All times are GMT + 1 Hour
Jump to: