I tried your code. Same error message.
There seems to be an omission in the DAT-file of the ATTiny43U.
Since the ADC of the 43 has 2 status registers, ADCSRA and ADCSRB, I added a line in the DAT-file that says [code:1:34f091762b]ADCSR=$06 ; for pantera[/code:1:34f091762b]
If this fixes your problem, please report this to MCS support; the DAT-file will be corrected in the next release.
Enjoy
Nard
Attaching a .dat-file is not allowed so I changed the extension to .txt. Rename to .dat
↧
BASCOM-AVR : attiny43u.dat - ADC_MUX entry not found in DAT file : REPLY
↧
BASCOM-AVR : attiny43u.dat - ADC_MUX entry not found in DAT file : REPLY
When testing this slightly expanded program, the next flaw comes up:
[code:1:f0da34743b]$Regfile="attiny43u.dat"
$Crystal=1000000
$hwstack=24
$swstack=16
$framesize = 32
Dim Adc_value As Word
Config Adc = Single , Prescaler = Auto , Reference = Internal_1.1
Start Adc
Adc_value = Getadc(4)
End[/code:1:f0da34743b]
ADC_MUX entry not found etc.
Another entry is required in the .DAT file. Working on that now ....
↧
↧
BASCOM-AVR : M128 problem : REPLY
$regfile = "m128def.dat"
$crystal = 8000000
$hwstack = 16
$swstack = 16
$framesize = 16
Config Pinb.7 = input
Portb.7 = 1
Do
if Until Pinb.7 = 1
Lcd "1"
else
Lcd "0"
loop
End
↧
AVR : Measuring transfer time : NEWTOPIC
Hello, i would like to do a device for measuring transfer time in an UPS applications. UPS topology offline and line-interactive has transfer time line-battery and battery-line around 4 - 10ms. I am not sure if MCU atmega is good choice for this measuring. What do you think ?
↧
BASCOM-AVR : strange behavior DACB1 ATXMEGA32A4 : REPLY
Today dit some more tests.
with both DACB0 and DACB1 enabled.
and timer TCC0 enabled then DACB0 output goes after 1 second from 2.5V to 3.3V and DACB1 stays at 2.5V
when i dont config Timer TCC0 the probleem seemd to shify from DACB0 to DACB1
so i looks that there is going something wrong with the config
this is the code where i do the test with
[code:1:e65e6b78aa]
'*******************************************************************************
'Name : DAC_TEST.bas
'Compiler 2.0.7.7
'
'Cpu : xMega32a4
'crystal : 8Mhz external
'
' fuses selection
'
' - userid = 0xFF
' - WDWP = 8 cycles (8ms @ 3.3V)
' - WDP = 8 cycles (8ms @ 3.3V)
' - DVSDON = unchecked
' - BOOTRST = application
' - BODPD = BOD enables continuosly
' - RSTDISBL = unchecked
' - SUT = 0 ms
' - WDLOCK = unchecked
' - BODACT = BOD enables continuosly
' - EESAVE = unchecked
' - BODLVL = 2.4V
'
' Versie 1001
' - Eerste release
'
'*******************************************************************************
$regfile = "xm32a4def.dat"
$crystal = 8000000 '8MHz
$hwstack = 250
$swstack = 120
$framesize = 120
Config Submode = New
'*******************************************************************************
' Config i/o
'*******************************************************************************
Config Porta.5 = Output
Config Portb.0 = Input
Config Portb.1 = Output
Config Portc.0 = Output
Config Portc.1 = Input
Config Portc.2 = Input
Config Portc.3 = Input
Config Portc.4 = Output
Config Portc.5 = Input
Config Portc.6 = Input
Config Portc.7 = Output
Config Portd.0 = Input
Config Portd.1 = Input
Config Portd.2 = Input
Config Portd.3 = Input
Config Portd.4 = Output
Config Portd.6 = Input
Config Portd.7 = Output
Config Porte.0 = Output
Config Porte.2 = Output
Config Porte.3 = Output
'*******************************************************************************
' Config Clock
' Enable the external oscillator with Range 2MHz....9MHz
'*******************************************************************************
Config Osc = Disabled , Extosc = Enabled , Range = 2mhz_9mhz , Startup = Xtal_256clk
Config Sysclock = External , Prescalea = 1 , Prescalebc = 1_1
Portcfg_clkevout = 10 'output sysclk clock on PortD.7
'*******************************************************************************
' Config DAC
'*******************************************************************************
Config Dacb = Enabled , Io0 = Enabled , Io1 = Enabled , Channel = Dual , Reference = Avcc , Interval = 64 , Refresh = 64
Dacb0 = 0
Dacb1 = 0
'*******************************************************************************
' Config timer 0 al 100mSec ticker
'*******************************************************************************
Config Tcc0 = Normal , Prescale = 256
Tcc0_per = 3125
On Tcc0_ovf Tc0_isr
Enable Tcc0_ovf , Lo
'*******************************************************************************
' Declare Alias
'*******************************************************************************
Zenderled Alias Porte.0
Power_on Alias Porte.3
'*******************************************************************************
' Declare Variable
'*******************************************************************************
Dim 100ms_flag As Bit
Dim Seconde As Byte
Dim Seconde_flag As Bit
Config Priority = Static , Vector = Application , Lo = Enabled , Med = Enabled 'Enable Lo Level Interrupts
'*******************************************************************************
' Interrupts
'*******************************************************************************
Enable Interrupts
'*******************************************************************************
' default settings
'*******************************************************************************
Reset Zenderled 'default led on
'*******************************************************************************
' main program
'*******************************************************************************
Wait 1
Power_on = 1
Dacb1 = 3000
Dacb0 = 3000
Do
Loop
End
'*******************************************************************************
' Timer 0 isr routine
'*******************************************************************************
Tc0_isr:
Set 100ms_flag
Return
[/code:1:e65e6b78aa]
Can someone tel me waht is going wrong?
↧
↧
BASCOM-AVR : attiny43u.dat - ADC_MUX entry not found in DAT file : REPLY
attached a new file. i did not test the a/d converter of this chip. i probably do not have this chip.
↧
Share your working BASCOM-AVR code here : View Bascom Graphic (BGF) file : REPLY
thanks, well done !
I did work on bgf import in bascom but this is much nicer.
↧
BASCOM-AVR : RFID Reader : REPLY
excellent update, thanks ! Never worked out how to write cards myself so it great to have some working code.
↧
BASCOM-AVR : attiny43u.dat - ADC_MUX entry not found in DAT file : REPLY
Dear Mark.
Thank you very mutch for fast answer. It seems that adc is now working! I did only quick test with light sensor and led. Later i'll report about this topic. :D
↧
↧
Share your working BASCOM-AVR code here : View Bascom Graphic (BGF) file : REPLY
There is one bug . In New RLE compress routine files are smaller because in "somme magic" way they know where graphic start od the display. Then no compress blank space. If anyone can "take of look" for routine in glcd.lib and tell me how they made this :lol: then I can implement this to Enigma to prevent those, showed on picture bugs. Tkanks
[img:ddc02cb402]http://iv.pl/images/04078851288479434205.png[/img:ddc02cb402]
...because my knowledge about assembler is low.
Picture show so 9 (impossible) pixels for byte must bee for that signed picture (width&height) Miss part of data to skip blank place. If I implement that then will be first official relase :D
↧
Share your working BASCOM-AVR code here : View Bascom Graphic (BGF) file : REPLY
Thanx for your work!
↧
Various : USB-ISP on Windows 8.1 : NEWTOPIC
Hello dear Reader,
I seem to be unable to use my USB-ISP programmer on my new Windows8.1 machine (it worked perfectly on Windows XP and Windows 7(32)).
I duely downloaded the driver files as per the HELP instructions and put them into the "USB" - Folder.
When connecting the programmer, Windows says "Installing" and after a while seems to have finished. However, no light starts on the programmer and the Hardware Manager shows the USB-ISP Programmer with the infamous "!" in a yellow triangle.
Is there a separate set of Drivers for W8.1 (or W8) ?
Thanks for your consideration
Ernst
↧
Various : USB-ISP on Windows 8.1 : REPLY
Hi,
Could it be that Windows 8 expects a signed Driver? Are you running 32 or 64bit Windows?
Regards
Ian Dobson
↧
↧
Share your working BASCOM-AVR code here : View Bascom Graphic (BGF) file : REPLY
Finally I found that this was bug in my decompress routine :D My software missed AA when they should be showed (00 after AA)
[img:0378fea5ac]http://www.iv.pl/images/01218800529613393390.png[/img:0378fea5ac]
I found solution for that and here we go! First official relase. Logo I do it myself :lol: so enjoy
[img:0378fea5ac]http://www.iv.pl/images/04623272726447988397.jpg[/img:0378fea5ac]
[url=https://www.dropbox.com/s/vqrlrooqqhzn5tc/ArrayEnigma%20Logo.exe?dl=0]There is link to this version on my DropBox account.[/url]
↧
Various : USB-ISP on Windows 8.1 : REPLY
Thank you Ian, for your prompt response.
It could well be that W8 expects a signed driver, although in such cases I would expect a (warning) message like "This is not an authorized driver etc. ".
I also had problems to get the widely used USB/RS232 converters working. None of my three pieces worked - they all have the "wrong" chip inside. If such a converter is not specifically suited for W8 it won't work. The "new" ones don't cost more, they just have a different chip. That, of course, could also be the problem with my USB-ISP programmer.
Best regards
Ernst
↧
Various : USB-ISP on Windows 8.1 : REPLY
Push the "Shift" Button while clicking Restart. You will get a menu to choose "abgesicherter Modus" (press "7")
After the reboot you get the Driver hint "...Treiber trotzdem verwenden"
As far as i know, there is no permanent way to do this! So you should press "shift" before every reboot, otherwise driver will not be operating!
best regards, michael
↧
Various : USB-ISP on Windows 8.1 : REPLY
With USB to RS232 devices I found with a lot of searching the old driver works fine but you have to stop win8 from updating it to the newer one that does not.
So you have to lock it out in the updates section.
Its best to turn automatic updates off so you can choose.
I also lost my sound from my PC only to find out that it was a problem with a windows update.
With many drivers I have had to go through turning off driver signing.
Regards Paul
↧
↧
BASCOM-AVR : RFID Reader : REPLY
Hello!
It seems that i can't get it to write on my tags...program reports "Storage volume KByte 8, which means 1kb of storage, i did uncomment line for write data and terminal says "Write data" 3 times, but still i only get tag ID...
any clue what's wrong? i have tags and cards from ebay, card type 0400.
Thanks!
Best regards, Paul
↧
BASCOM-AVR : Is there any intention to put Bascom on java/multiplatform? : REPLY
Most Android devices I have seen cannot even program themselves - you need a PC running Windoze or Linux to do that.
How do you plan to program the target device ? Few Android devices have USB host ports to allow programming hardware attachment, and certainly no drivers.
However you can certainly run any text editor on a device, and write code with that. No nice IDE though.
I imagine it would not be very difficult to port just the Bascom compiler to an Android platform, but you still need to get the hex code into the target.
↧
BASCOM-AVR : ADC Reference voltage : NEWTOPIC
I am unsure about the Reference voltage on the ATMEGA8535.
I use an inductor and capacitor from the VCC to supply the AVCC ADC pin and just use a bypass cap on the AREF pin and of course the ADC ground pin is grounded.
I use the following command
Config Adc = Single , Prescaler = Auto , Reference = Avcc
When I measure the voltage at the AREF pin I get the same voltage as I measure at the AVCC pin which is 5V which surprises me as I was expecting a reference voltage of 2.56V. Maybe what is measured at that pin is not the actual reference voltage?
I have an LCD display and look at the output from Getadc(2) i.e. the channel I use to apply an external voltage to the ADC.
Why is it that 255 (the maximum byte) is displayed when the DC input voltage is about 1.25V? I thought it would require an input voltage of twice that i.e. the same as the reference voltage (2.56V) or if the reference is 5V would be nearly twice that.
I hope that someone can throw some clarity on this - thanks.
Don
[b:1d41c11ce8][color=red:1d41c11ce8](BASCOM-AVR version : 2.0.7.5. , Latest : 2.0.7.7 )[/b:1d41c11ce8][/color:1d41c11ce8]
↧