Quantcast
Channel: MCS Electronics Forum
Browsing all 20601 articles
Browse latest View live
↧

BASCOM-AVR : urxc problem : REPLY

@sarutobi1 You need to read the UDR register in order to get the flag cleared. Se the data sheet.

View Article


AVR-DOS : compiler error in Config_MMCSD_HC.BAS : REPLY

So here's where I'm at: 1. compiling with mmc includes and file ops (open,write,flush,close) gives "forward jump out of range". 2. if I remark out file ops (open,write,flush,close) then there's no...

View Article


BASCOM-AVR : urxc problem : REPLY

hi for_ro thank you but my problem is "unwanted interrupt" means i must write this code? [code:1:63038498f6] $regfile = "m16def.dat" $crystal = 12000000 $baud = 9600 Config Portb = Output Enable...

View Article

BASCOM-AVR : urxc problem : REPLY

@sarutobi1 It doesn't make sense to diasable and enable single interrupt flags inside an ISR. The hardware globally disables all interrupt when entering an ISR and globally enables, when leaving the...

View Article

BASCOM-AVR : urxc problem : REPLY

i correct the code : [code:1:9337b15cef] $regfile = "m16def.dat" $crystal = 12000000 $baud = 9600 Config Portb = Output Enable Interrupts Enable Urxc On Urxc Code Do Loop End Code: Toggle Portb.0 Wait...

View Article


BASCOM-AVR : urxc problem : REPLY

Try [code:1:2afca93434] $regfile = "m16def.dat" $crystal = 12000000 $baud = 9600 Config Portb = Output dim Temp as Byte Open "com1:" For Binary As #1 Enable Interrupts Enable Urxc On Urxc Code Do Loop...

View Article

BASCOM-AVR : passing a value in a subroutine? : NEWTOPIC

This code doesnt work: I keep getting an assignment error [code:1:d35fb22d1e] Sub Numtoseg(byval Numval As Byte) As String * 3 Dim Returndata As String * 3 'Santech Register: 'Bit 0 = D 'Bit 1 = C...

View Article

BASCOM-AVR : passing a value in a subroutine? : REPLY

Hi, An SUB can't return a value, you need FUNCTION for that. [code:1:38aa514734] Declare Function Numtoseg(byval Numval As Byte) As String * 3 Dim Mystring As String * 3 Do Mystring = Numtoseg(12)...

View Article


BASCOM-AVR : passing a value in a subroutine? : REPLY

Eh I figured it was something stupid. I am used to VB where you can pass in either a sub or a function. lol.

View Article


BASCOM-AVR Old versions : handling 24 signed bit values : NEWTOPIC

I am working at energy metering IC ADE7753 of Analog Devices. I has a register of 24 bit, It is signed value register, I am reading it in a register array and displaying its value in hex, It is...

View Article

BASCOM-AVR : Find out if bootloader is present in flash : REPLY

[quote:744a0d8552]I would try reading several Bytes from the bootloader area in a Loop and if they're all &HFF then the bootloader isn't installed. [/quote:744a0d8552] I have tried this with CPEAK...

View Article

BASCOM-AVR : Find out if bootloader is present in flash : REPLY

I have just installed my bootloader into a 1284P. Here is a snippet of the code:[code:1:b10d6004fb] $regfile = "m1284pdef.dat" Const Loaderchip = 1284 $loader = &HF000 ' 4096 words, starts at...

View Article

BASCOM-AVR : Find out if bootloader is present in flash : REPLY

Hi, use cpeekh to read the upper page (second 64k page). Just write a simple bit of code then scans the upper page and Display the first Byte that isnt FF, then you've found the boot loader. I think...

View Article


BASCOM-AVR : Find out if bootloader is present in flash : REPLY

F000 x 2 = 1E000 gotcha

View Article

BASCOM-AVR : Find out if bootloader is present in flash : REPLY

[quote:28bd615650="njepsen"]But when i pull the EEPROM code from the chip[/quote:28bd615650] You won't find any bootloader in EEProm :D [quote:28bd615650]I thought the BL should start at F000...

View Article


BASCOM Project Blog : Making A Meter with the 32 x 8 matrix display : REPLY

I wanted to display positive , negative sign and decimal point on the display but also 4 digits but I only have 4 modules? I noticed we had 3 columns of unused leds so why not move the digits to the...

View Article

BASCOM-AVR : Find out if bootloader is present in flash : REPLY

Flash flash :)

View Article


BASCOM-AVR : urxc problem : REPLY

[size=18:21ca923687]:::::thanks::::::[/size:21ca923687] your code works very well but how i can empty entire recive register ? for exampel if i receive 5 character , inkey only remove 1 of them( is it...

View Article

BASCOM-AVR : urxc problem : REPLY

hai sarutobi1 , search avr forum for "serial communication" , you'll find a bunch of example

View Article

BASCOM-AVR : urxc problem : REPLY

Hi, The Serial buffer is only 1 character Long. Everything a character arrives the ISR is called. To grab an entire string try [code:1:934619ed85]temp=inkey(#1) 'Get character from buffer...

View Article
Browsing all 20601 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>