1. what is the function of "@" and how to utilize it? if A @ 0x03, means A = 0x03 or A address is fixed as 0x03 or else?
ans:
@ may sometimes as label
@ pointing address
but there are rules in assembly language that prohibits it.
@ 3:
instead
label3:
if conditions
goto label3
2.how do we receive an input coming from a pin?
ans:
a low or high input level
a digital signals
0 volts = 0 = off
5 volts= 1 = on;a floating signal
3.how do we send an ouput to a pin?
for a data port
pb.0=0x02 // first port - first bit send an output 0010
pb.1=0x03
4.how to detect incoming data? using infinte loop?
ans: compare variable,parameterss
do
{
var ++ // increment or decrement
if(var -compare-value) // detector for control
} while(Var-value) // control -infinite or not
5.how to send or receive a group of binary (0111 0001)? does frequency or time matter?
ans: somehow yes if you are grouping it into a bits ,byte, word - or equivalent data type but in syncronizations times matter most and frequency as well
6.how do we check the microcontroller frequency and modify it?
ans:
.. first you have to read the crystal oscilator or its resonator
that produce the pulse of the device-Microcontroller
7.how do we check the microcontroller "time" and modify it?
... need to know also the input clok.. then if you desired designing
clock variability device such as 555 or equivalent family
the formula-RC chargingConstant
F = 1/T
T=RC
8.how do declare our own interrupt, plus how to retrieve list of available intterupt in the microcontroller?
ans:
need to read the data sheet of whatever Microcontroller you want and find out
all the interrupt you are able to map inside its ROm -Interrupt architecture
or a compiler itself able to read the I/O Mapping
9.can we declare our own register?btw, i find register like RCREG, RCIF and etc etc how do we utilize it?
[
b]ans:
take note that in I/O map of its microcontroller architecture
the next addresses are reserved for a user temporary storage or say memory
ex
0000 - stack
01F0 - instruction
0FFF - Reserved temporary
FFFF -----
10.if send an ascii character like 'A' do we have to convert to hex then to binary and send it?
ans:
take note all dispaly are characters
' a',bc,d ...'1','3'
in digital system it has an equivalent aschi code in hex,
which hex also has an equivalent bits
ex
'a' = 40h = 01010>> this what you are processing inside the machine
11.how do we make the program go into sleep or wait mode?
ans:you use loop and its equivalent interrupt
12.how do we utilize the option pin function, for example PIN PORT C 3 has 3 function, which are RC3/SCK/SCL... plus other available dunction on the microcontroller?
13.PORTB = 0x02 //set 4 bit mode? or it means PORTB1 = 1?
you are refrerring to a declarations a hex value assigned to a port
say 2h= 0010
maybe not this time anymore
wish i could help...Thanks
Cyrix-Cracker