define LOADER_USED 1
define OSC 20
DEFINE RESET_ORG 800H
data var byte
ADCON1 = %00001111
TRISC = %10000000
DEFINE HSER_RCSTA 90h
Type: Posts; User: kutsi; Keyword(s):
define LOADER_USED 1
define OSC 20
DEFINE RESET_ORG 800H
data var byte
ADCON1 = %00001111
TRISC = %10000000
DEFINE HSER_RCSTA 90h
hi all,
Using 18f4550....
I tried it on INT_INT -- INT External Interrupt and RBC_INT -- RB Port Change Interrupt. It works wonderfully.
At this point, I want to use TX_INT -- USART Transmit...
if u want to test your (interrupt)code without connecting an external device, you should not forget to create your own interrupt. At least, it was enough to solve my problem. the easiest way ;...
actually I tried to debug it with the simulation.
CORE-E0002: Stack under flow error occurred from instruction at 0x0000c4
Can someone help me on the code?
'Aim: to use adc bits as inputs, apply sinusoidal input and
'upgrade the blink project a little further. The next step is going to
'be using interrupt.
...
I'm really tired right now. It still does not work... I will continue with it tomorrow. Just bored right know.
And also for the interested ones, I'm trying to write my second picbasic code. I...
Hi all,
I'm trying to program 18f4550, using MPLAB ICD2. I successfully compiled several timesat beforehand (with the same board design!!!).But this time something strange happened. This is really...
Thanks alot mister_e, eric123... I have all the information I need.
They are really wonderful.
I have a further question which is about voltage converters. I remember that it is necessary to use a voltage converter like MC1489 to convert TTL logic levels to RS232...
Hi all,
I'm studying RS232. So I read many posts about serial connection. But it seems, I'm confused at the end. I have few questions about using max232. As I understood so far, max232 is...
it works...
hi everyone,
My question is about getting info from a maxon dc motor. I'm using HEDL 5540, and pic18f4550. So I started to search the forum for an interface code. Many thanks to mister e, I found...
Thanks for the tips. I will try them,and turn back with many other questions, I guess.
Hi all,
I'm working on a project,and using 18f4550. I'm designing a circuit board and planning to control a dc-motor. I would try pwm, instead my instructor wanted me to use DAC. Can you beriefly...
thanks a lot, it works...
I don't know exactly what it means. Actually this is a sample code from PBP. The name is Blink.bas
PBP 2.46
mplab ICD 2 as programmer
mplab IDE 7.5
anything missing?
PORTL.0 is a user defined variable for PORTB.0
PAGE 6
Define ONINT_USED 1
LED var PORTL.0 ' Alias PORTB.0 to LED
loop: High LED ' Turn on LED connected to PORTL.0
Pause 500 ' Delay for .5 seconds
Low LED ...
I guess, firmware needs first 2kb of the memory.Therefore the first 800h bits must be allocated...
PIC18F4550
PICDEM FS USB DEMO TOOL VERSION 1.00
Hi,
I recently started to use PICBASIC PRO, and trying to write a code which will simply light a led. While using bootloader I recognized that I need to allocate some free space for firmware. How...