what does $prog statement mean for

Go To Last Post
14 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi everybody, i have a program in bascom for atmega8 avr

$prog &HFF , &HE4 , &HC9 , &H00

what does this statment means?
Regards Muhammad Haseeb

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Bascom manual probably has a summary of basic syntax. $ means string and &H means hex

Imagecraft compiler user

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Go here:

http://avrhelp.mcselec.com/index...

Use the search link. It leads to:

http://avrhelp.mcselec.com/_prog...

Which bit of the description on that page do you not follow?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Thanks a lot Clawson for your help. Actually I have a universal micro controller programmer. I am new to AVR's micro controllers. So i really don't know much about them.

What does this lock and fuse bits do?
I get the code from internet. hmmm. Why this statment is used in code?

Thanks in advance brother

REgards Muhammad Haseeb

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Quote:

I am new to AVR's micro controllers. So i really don't know much about them.

But this has nothing to do with AVRs specifically. It's about one's ability to search using Google and read manuals.

The fuse bits configure AVRs in various ways, the lockbits protect certain areas of flash from being read out of the device to prevent someone reverse engineering your design.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

EDIT: What happened to the insulting post I just replied to? OP got offensive because I pointed out his laziness and inability to just type "bascom $prog" into Google. Boo hoo. Get a life!

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Quote:
Boo hoo. Get a life!
You're not dreaming Cliff (Mr. Clawson) The post was here earlier. I was a little surprised by his post considering you were very helpful to him. But 'Get a life?' That's very unlike you!

--greg
Still learning, don't shout at me, educate me.
Starting the fire is easy; the hardest part is learning how to keep the flame!

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Quote:
But this has nothing to do with AVRs specifically. It's about one's ability to search using Google and read manuals.

There is always a good way to say bad things. As i told you before i am new to avr micro controllers. And i am programming in Bascom. The literature on bascom in english is very rare on internet. and I myself googled $prog statement. But google didn't return relevant websites.

Thats why i post here for help. Your reply was helping but not encouraging, thats why i said that.

I just want to say that, people only post here when they are confused or doing right thing slightly wrong. So we should encourage them rather than calling them lazy.
Anyways, i m sorry if u felt bad.

REgards Muhammad Haseeb

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Quote:

As i told you before i am new to avr micro controllers. And i am programming in Bascom. The literature on bascom in english is very rare on internet. and I myself googled $prog statement. But google didn't return relevant websites.

Quote:

Go here:

http://avrhelp.mcselec.com/index...

Use the search link. It leads to:

http://avrhelp.mcselec.com/_prog...

Which bit of the description on that page do you not follow?


Aren't those the BASCOM "home page"? If you have chosen to use BASCOM as the tool chain, there must have been one or more reasons? I'd think that would involve a trip to the Web site. How did you get it downloaded in order to install and use? I'd think that would involve a trip to the Web site. And at that Web site are the manuals. New to microcontrollers, and new to the toolchain--I'd assume you would at least make one pass at the manuals, so you should have them available. If not, shame on you.

And there is no index, or search of the manuals, for the keyword involved?

You can put lipstick on a pig, but it is still a pig.

I've never met a pig I didn't like, as long as you have some salt and pepper.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

OK this is what I did to find info about $prog. (as I don't use Bascom I don't have a copy of the manual on my PC - I imagine most people who use it will have?). So I typed "Bascom" into Google. In the very top hit there were several sub-links one of which was encouragingly called "BASCOM-AVR Help". I clicked this link and it took me to the first link in my post above. That is the opening page of the Bascom online help system which includes an index and search function. I just looked up "$prog" in the index and got to the second link I gave.

It's hardly rocket science is it? :?

It does seem to me that trainee engineers these days are losing the ability to simply locate relevant info which does seem hugely ironic in the Google+Wikipedia+etc. world in which we live. 30 years ago we had to do this stuff by visiting a library!

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

oh come on. one of friend told me bascom-avr is much simpler than avr studio thing. so i downloaded the software from www.4shared.com, its been hardly 2 days for me on bascom. i visted mcs electronics and goes to the Books corner. i just found plenty of bascom books in korean german, and other languages. apart from this, i found out some codes on bascom from google. and i see $prog statment. now what is the big deal if i ask a question thats looks stupid to you guys.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

haseeb_00001 wrote:
so i downloaded the software from www.4shared.com...
I see the end of this thread approaching...

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Yo Haseeb.... The fellow that writes and sells that compiler is feeding his children with the proceeds from his work. If the Muslim Brotherhood finds out you have stolen his intellectual property, they'll cut off your right hand. This will slow down your typing speed at least 50% and probably runin you chances of getting a software enbgineering job in the the burgeoning Pakstani software industry. If you consider him to be an Apostate, then just go ahead and use his compiler. There will be a final reckoning someday. If There Is But One God, either you or me is wrong about his intentions, and one of us is in Big Trouble.

Imagecraft compiler user

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Quote:

I see the end of this thread approaching...

Indeed ;-)

haseeb_00001,

I'm afraid software piracy is not tolerated on this website (most people here are also professional programmers making a living from selling their own IPR). So no further support can be provided to the kind of low life scum that openly steals other peoples livelihood. As such this thread is locked.

Moderator.

Topic locked