Hello Don
Config Adc = Single , Prescaler = Auto , Reference = Avcc <<<<<<< its working as expected you told it to use AVCC
Try
Config Adc = Single , Prescaler = Auto , Reference =INTERNAL_2.56
I do not have a 8535 to try
Regards Paul
↧
BASCOM-AVR : ADC Reference voltage : REPLY
↧
BASCOM-AVR : ADC Reference voltage : REPLY
[quote:2bcfde42c8]Why is it that 255 (the maximum byte) is displayed when the DC input voltage is about 1.25V?[/quote:2bcfde42c8]
It seems like you are reading adc into a [u:2bcfde42c8]byte[/u:2bcfde42c8] variable.
Try
[code:1:2bcfde42c8]dim adc_val as word
adc_val = getadc(2)
Lcd adc_val
[/code:1:2bcfde42c8]
↧
↧
Share your working BASCOM-AVR code here : Measure Vcc over Bandgap Voltage in Battery powered devices : REPLY
MAK3
This is a great tip. Extremely useful. Thank you!
Dave
↧
BASCOM-AVR : RFID Reader : REPLY
Hello Paul,
the program supported only 4Byte Tag ID,
your Tag have certainly 8Byte ID.
if the first Byte-ID H88,
the Chip has 8Byte ID
Best regards
Hkipnik
↧
BASCOM-AVR : RFID Reader : REPLY
Hi!
well, my ID's are, say, 94 70 26 EB, or 75 02 F5 2D, and 04 0B 5A 2E.... that's what program shows.
cards are Mifare Classic 1k S50, like this ones:
http://www.ebay.com/itm/5-x-NFC-thin-smart-card-tag-tags-Mifare-1k-S50-IC-13-56MHz-Read-Write-RFID-/321189711006
Thanks!
Best regards, Paul
↧
↧
BASCOM-AVR : Trouble with 1-wire device DS2450 : REPLY
[quote:855ee71d18="Antony(uk)"]Hi
Have a look at AN#168
[url]http://www.mcselec.com/index.php?option=com_content&task=view&id=256&Itemid=57[/url]
Gives a good example emulation the 2450 and Tiny Avr.
It might be usfull.
Regards Antony(UK)[/quote:855ee71d18]
Anthony,
Have you tried to get this to work using the ATTiny45? I can get as far as seeing the serial number of the ATTiny45 programmed part but it seems that the CRC routine may not be working correctly for returned data first or second pass.
Thank you,
Sam
↧
Various : USB-ISP on Windows 8.1 : REPLY
Thank you both, six1 and Paulvk.
I have tried various approaches, but was not successful. Before fooling around too much in my new W8 baby I'll continue to do my programming from W7.
Regards
Ernst
↧
Various : USB-ISP on Windows 8.1 : REPLY
Also Arduino works ok with Bascom and win8.
Regards Paul
↧
BASCOM-AVR : ADC Reference voltage : REPLY
Thanks Paul,
I don't understand why there needs to be a s/w directive to have the AVcc reference when simply connecting the hardware AVcc to the reference pin would do the same thing if the chip only has the AVcc reference option. I tried the internal_2.56 directive and the compiler doesn't come up with an error. I got the impression that the ATMEGA8535 only accepts the Reference= AVcc command. I didn't measure the voltage at the reference pin when the _2.56 was specified but I suppose it would not be brought out and may not even be 2.56V - will check when I have time.
Thanks Visovian, you are quite right but I don't need high accuracy so a byte variable is fine.
cheers
Don
↧
↧
Various : USB-ISP on Windows 8.1 : REPLY
Hello all,
is anybody out there who is using the USB-ISP programmer on a W 8/8.1 OS and got it running the "conventional" way?
Thanks
Ernst
↧
BASCOM-AVR : RFID Reader : REPLY
Hello Paul,
try in the Sub RC522_auth the Password
to place on A0 - A1 - A2 - A3 - A4 - A5
or try other Tag
↧
Share your working BASCOM-AVR code here : ADD Big Font display SSD1306 128x64 : NEWTOPIC
Hello,
I'm trying to draw big letters 8x12 (display SSD1306 128x64), but instead of drawing vertical draws on the Horizontal.
For Example: Number 1: (&H18,&H38,&H38,&H58,&H18,&H18,&H18,&H18,&H18,&H18 ,&H18,&H7E)
Everything is fine when I use fonts 7x6 Numer 1: (&H00,&H42,&H7f,&H40,&H00,&H00)
Number 1 Vertical (OK)
01234567 (POS Bits X-Y)
00011000 &H18
00111000 &H38
00111000 &H38
01011000 &H58
00011000 &H18
00011000 &H18
00011000 &H18
00011000 &H18
00011000 &H18
00011000 &H18
00011000 &H18
01111110 &H7E
Number 1 Horizontal (BAD)
000000000000
000000000001
000000000001
111111111111
111111111111
011000000001
000100000001
000000000000
const OLED_Address = 78
const OLED_DataCommand = 64
'OLED initialisation
i2cstart
i2cwbyte OLED_Address
i2cwbyte &HAE 'DISPLAY OFF
i2cwbyte &HD5 'SET DISPLAY CLOCKDIV
i2cwbyte &H80 'DISPLAY RATIO '80
i2cwbyte &H1F 'DISPLAY 1/32 DUTY
i2cwbyte &H20 'HORIZONTAL MODE 20
i2cwbyte &H00 'SET DISPLAY STARTLINE
i2cwbyte &H40 'DISPLAY START AT 0
i2cwbyte &HA1 'REMAP 0-127
'i2cwbyte &HA2 'Display up/Down A0 o Abajo A8
i2cwbyte &HC8 'SCAN DIRECTION C8 or C0
i2cwbyte &HDA 'COM PINS
i2cwbyte &H12 'COM PINS 10
i2cwbyte &HA4 ' DISPLAY ON
i2cwbyte &HA6 '$A6=NORMAL MODE;$A7=INVERSE MODE
i2cwbyte &HD9 'set precharge period D9
i2cwbyte &HF1 '$22 - External, $F1 - Internal
i2cwbyte &HDB 'vcomh deselect level
i2cwbyte &H20 'rtfm 20 o 40
i2cwbyte &H8D 'enable charge pump
i2cwbyte &H14 'at 14h = 20d
i2cwbyte &HAF ' DISPLAY ON
i2cstop
----------------------------------------------
Because it can be due.
As I have set it up?.
THX.[code:1:a746b254b4][/code:1:a746b254b4][list:a746b254b4][/list:u:a746b254b4][list=][/list]
↧
BASCOM-AVR : RFID Reader : REPLY
Nope...nothing.
At the moment i have only one type of cards at home. Maybe i will order some other type once, but for now the main thing is that reading ID works, and that alone is a great job from you!
Thanks again!
↧
↧
BASCOM-AVR : ADC Reference voltage : REPLY
[code:1:5484f18dd7]Config Adc = Single , Prescaler = Auto , Reference =INTERNAL_2.56 [/code:1:5484f18dd7]
Is the correct way to 2.56V internally, the correct bits (REFS1 and REFS0) are set by Bascom. Tested in the simulator.
Are you using the correct regfile?
8535def.dat = for the AT90S8535
M8535.dat = for the Mega8535
↧
Various : USB-ISP on Windows 8.1 : REPLY
On the subject USB-ISP Programmer and W8 I did some more searching.
Since deactivation of the driver signature enforcement did not help, I tend to believe that the USB-ISB chip doing the USB communication might not be suitable for W8 no matter what the driver is.
Prolific lists a number of chips expressedely NOT suitable for W8, whereas it seems that all FTDI chips work with W8.
Does anybody know what chip is actuallay used in the USB-ISP programmer?
Thanks
Ernst
↧
Various : USB-ISP on Windows 8.1 : REPLY
An FTDI245 chip is used. This is a parallel serial chip.
I had no problems in windows 8. I do not remember if i tested with 8.1 as well.
I would perform a new test but i do not have usb-isp programmer. I do have a defective unit which i could repair for test. But this will take some time.
I think i permanent turned off driver signing in win8.
↧
Various : USB-ISP on Windows 8.1 : REPLY
Thanks Albert for your information.
My problem is solved now. After I went 3 times through the driver signature deactivation routine, W8 finally reacted.
The nice thing, after deactivating the enforcement W8 goes back to the "old" reaction "..do you want the driver dnstallation anyway...." and upon YES installs the driver like in the good old days.
Thanks again and best regards
Ernst
↧
↧
Various : USB-ISP on Windows 8.1 : REPLY
it should work permanent now.
↧
Various : USB-ISP on Windows 8.1 : REPLY
Hello Ernst
The chip that prolific said does not work actually does work very well just not with the new drivers windows 8 wants to install.
A lot of searching found the correct (old) driver for me!
Details>> PL2303
Driver Provider Prolific
Driver date 24/09/2008
Driver version 3.3.2.102
Note you have to force windows to use this driver then not let it update!
The chips that are suppose to work do not work very well they keep dropping in and out.
Some of the USB to RS232 cables are not RS232 compliant they are 5V only and will fail when connected to a real RS232 device.
I have a USB programmer based on an Mega8 chip but have not tested it enough to say it works well all the time.
I looked up Arduino ISP programmer and there are instructions on how to turn an Arduino into a programmer this may be a way to go.
Regards Paul
↧
BASCOM-AVR : ADC Reference voltage : REPLY
Hi Don
You must use a word for the adc. A byte would not reduce accuracy, but lead to completely false results.
↧