I have a problem with this board.
"Mini USB Nano V3.0 ATmega328P FT232 5V 16M Micro Controller Board".
The cristal frequentie is 16 Mhz. Measure with a scoop.
'*******************************************
$regfile = "m328pdef.dat"
$crystal = 16000000 '** $crystal = 8000000 **
$hwstack = 150
$swstack = 150
$framesize = 250
'********************************************
Config Pinb.5 = Output
Do
Pinb.5 = 0
Waitms 100
Pinb.5 = 1
Waitms 100
Loop
'*******************************************
The output on B.5 is a pulse of 400 ms.
When a change the "$Crystal = 8000000 " in the program then is the output on B.5 200 ms.
All the programs running faster with "$crystal = 8000000"
Balou19
"Mini USB Nano V3.0 ATmega328P FT232 5V 16M Micro Controller Board".
The cristal frequentie is 16 Mhz. Measure with a scoop.
'*******************************************
$regfile = "m328pdef.dat"
$crystal = 16000000 '** $crystal = 8000000 **
$hwstack = 150
$swstack = 150
$framesize = 250
'********************************************
Config Pinb.5 = Output
Do
Pinb.5 = 0
Waitms 100
Pinb.5 = 1
Waitms 100
Loop
'*******************************************
The output on B.5 is a pulse of 400 ms.
When a change the "$Crystal = 8000000 " in the program then is the output on B.5 200 ms.
All the programs running faster with "$crystal = 8000000"
Balou19