Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

Search found 661 matches
www.mcselec.com Forum Index
Author Message
  Topic: Watchdog Atmega328
EDC

Replies: 5
Views: 295

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: 339

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: 249

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: 339

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: 630

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: 488

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: 273

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: 668

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: 668

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: 428

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 ...
  Topic: Using a Timer for Soft clock instead of 32768 kHz xtal
EDC

Replies: 15
Views: 668

PostForum: BASCOM-AVR   Posted: Wed Feb 19, 2020 9:57 pm   Subject: Using a Timer for Soft clock instead of 32768 kHz xtal
Yes. You can change COMPARE3A anytime. One thing can happen if Timer will be, for example at 6400, and you set COMPARE3A to 6000 then compare will not fire once and timer will simply overflow at 65535 ...
  Topic: Using a Timer for Soft clock instead of 32768 kHz xtal
EDC

Replies: 15
Views: 668

PostForum: BASCOM-AVR   Posted: Wed Feb 19, 2020 9:25 am   Subject: Using a Timer for Soft clock instead of 32768 kHz xtal
@KenHorse Read carefully - in that code you have "Config clock = Soft" where in your code it is "User"

There is another solution for clock. Look. It works even in the simulator.
https://www.mcsele ...
  Topic: Bluetooth module HC-06
EDC

Replies: 14
Views: 764

PostForum: BASCOM-AVR   Posted: Fri Feb 07, 2020 1:43 pm   Subject: Bluetooth module HC-06
If you use Serialin or Serialout that means that Serial is buffered and receiving and sending will be processed in the background and also, this is important, with Interrupts.

So you must Enable In ...
  Topic: Bluetooth module HC-06
EDC

Replies: 14
Views: 764

PostForum: BASCOM-AVR   Posted: Fri Feb 07, 2020 2:24 am   Subject: Bluetooth module HC-06
Some modules must be powercycled with KEY pin to entering into the AT Commands so hardware for changing name or PIN "In the fly" must be some more complicated.
  Topic: Programming the Atmega128
EDC

Replies: 2
Views: 249

PostForum: BASCOM-AVR   Posted: Wed Feb 05, 2020 7:16 am   Subject: Programming the Atmega128
There is a common mistake in programming M128. Please read once again datasheet for MISO MOSI and CLK for programinng because on M128 they are some kind of PDI ...and not share SPI hardware for progra ...
 
Page 2 of 45 Goto page Previous  1, 2, 3, ... 43, 44, 45  Next
All times are GMT + 1 Hour
Jump to: