Hi,
as you suggest to me "TRISAbits.TRISA5 = 0;" the compilation do not give error.
Before I had tried only writting the instruction: "TRISA5 = 0;" and even so it didn't give me an error ... is it correct even just so?
thank you very much
Regards
bob
Search found 25 matches
- Thu Jun 11, 2020 5:27 pm
- Forum: 8-Bit PIC
- Topic: Pic12F1840 how to change settings durin it run
- Replies: 5
- Views: 7542
- Thu Jun 11, 2020 11:46 am
- Forum: 8-Bit PIC
- Topic: Pic12F1840 how to change settings durin it run
- Replies: 5
- Views: 7542
Re: Pic12F1840 how to change settings durin it run
Hi, sorry if I haven't answered before but I had to fix other little things to run the program correctly. After the indication you gave me, everything is working properly now. I have another problem where the compiler gives me an error (attached file) . Where am I wrong? How can I solve it? Yours si...
- Fri Jun 05, 2020 10:55 am
- Forum: 8-Bit PIC
- Topic: Pic12F1840 how to change settings durin it run
- Replies: 5
- Views: 7542
Pic12F1840 how to change settings durin it run
Hello Martin, I ask you for help with an operation that I don't know how to perform. I am using the PIC12f1840 because I need few I / O and a serial line. The program starts with an initial setting of pins 6 and 7 such as RX and TX and after acquiring some data from a PC (via rs232) I need to set (a...
- Mon Feb 10, 2020 7:09 pm
- Forum: 8-Bit PIC
- Topic: Pic12f683 - rs232 FL8 in target do not work
- Replies: 37
- Views: 23231
Re: Pic12f683 - rs232 FL8 in target do not work
Hi, ok it's clear to me. Now it is also clear to me why in simulation it works: it is because the characters the simulator picks them up when they need them. I didn't know that a loop could be conditioned. I'm not a very scrupulous student ... Thank you very much, you have given an answer to all my ...
- Mon Feb 10, 2020 5:42 pm
- Forum: 8-Bit PIC
- Topic: Pic12f683 - rs232 FL8 in target do not work
- Replies: 37
- Views: 23231
Re: Pic12f683 - rs232 FL8 in target do not work
Hi Martin, here is what is not entirely clear to me ... first I had never used this method to intercept characters so when I used the usual system (the one you find in my first file sent) I was puzzled because in emulation it worked but not on the target. Secondly I don't understand how you went fro...
- Mon Feb 10, 2020 11:59 am
- Forum: 8-Bit PIC
- Topic: Pic12f683 - rs232 FL8 in target do not work
- Replies: 37
- Views: 23231
Re: Pic12f683 - rs232 FL8 in target do not work
Hi Martin, Perfect! Problem solved! Thank you very much for supporting me in this work that was going to exasperate me. Now I can continue with the development of the rest of the firmware. I saw how you modified the program. Small trick to solve a problem that seemed insurmountable, I honestly do no...
- Sun Feb 09, 2020 6:23 pm
- Forum: 8-Bit PIC
- Topic: Pic12f683 - rs232 FL8 in target do not work
- Replies: 37
- Views: 23231
Re: Pic12f683 - rs232 FL8 in target do not work
I thank you for the time you are spending on my problem.
Regards
Castabob
Regards
Castabob
- Sun Feb 09, 2020 4:54 pm
- Forum: 8-Bit PIC
- Topic: Pic12f683 - rs232 FL8 in target do not work
- Replies: 37
- Views: 23231
Re: Pic12f683 - rs232 FL8 in target do not work
Hi Martin, I corrected the program that now "in simulation" works correctly. Unfortunately there is no way to make it work on the target. The program does not even arrive until the end of the "PGM" character recognition. If it did, it would turn on the output (A2), as seen in the...
- Sat Feb 08, 2020 7:41 pm
- Forum: 8-Bit PIC
- Topic: Pic12f683 - rs232 FL8 in target do not work
- Replies: 37
- Views: 23231
Re: Pic12f683 - rs232 FL8 in target do not work
Hi Martin, I compiled (HEX) the program you sent me and I loaded it into the target. If I understood correctly, you wanted to see what I send to the target at pin 6 and what was retransmitted from pin 7. Through the Hercules terminal program I sent the contents of the 3 "send" fields separ...
- Fri Feb 07, 2020 7:46 pm
- Forum: 8-Bit PIC
- Topic: Pic12f683 - rs232 FL8 in target do not work
- Replies: 37
- Views: 23231
Re: Pic12f683 - rs232 FL8 in target do not work
Hi Martin, now it gets more interesting ... I cleaned up the program but without success: on the target it still doesn't work. There is probably something conceptual about my program that doesn't make it work. An important novelty is that I have enabled the transmission of the character received wit...
- Thu Feb 06, 2020 6:28 pm
- Forum: 8-Bit PIC
- Topic: Pic12f683 - rs232 FL8 in target do not work
- Replies: 37
- Views: 23231
Re: Pic12f683 - rs232 FL8 in target do not work
Hi Martin, excellent method to emulate. In fact in emulation it now works as I expect. Unfortunately, however, the firmware installed in the target still does not want to work. As you suggested, I tried the target with the flashing program for one second, affecting all the ports except the reset (pi...
- Wed Feb 05, 2020 8:12 pm
- Forum: 8-Bit PIC
- Topic: Pic12f683 - rs232 FL8 in target do not work
- Replies: 37
- Views: 23231
Re: Pic12f683 - rs232 FL8 in target do not work
Hi,
I can't make it work even in simulation.
regards
I can't make it work even in simulation.
regards
- Tue Feb 04, 2020 4:52 pm
- Forum: 8-Bit PIC
- Topic: Pic12f683 - rs232 FL8 in target do not work
- Replies: 37
- Views: 23231
Re: Pic12f683 - rs232 FL8 in target do not work
Hi Martin,
I had set the working frequency to 8 Mhz with the internal oscillator (I hadn't thought of a frequency of 32 Mhz).
Pin 4 is connected to the reset which is constantly high.
regards
I had set the working frequency to 8 Mhz with the internal oscillator (I hadn't thought of a frequency of 32 Mhz).
Pin 4 is connected to the reset which is constantly high.
regards
- Tue Feb 04, 2020 12:12 pm
- Forum: 8-Bit PIC
- Topic: Pic12f683 - rs232 FL8 in target do not work
- Replies: 37
- Views: 23231
Re: Pic12f683 - rs232 FL8 in target do not work
Hi Martin,
as you suggested I applied the 12F1840 chip but while in simulation it works as I expect, on my target the program does not work.
Maybe some chip settings are incorrect?
Please tell me where am I wrong? I am compiling in HEX using FL8.
Regards
castarob
as you suggested I applied the 12F1840 chip but while in simulation it works as I expect, on my target the program does not work.
Maybe some chip settings are incorrect?
Please tell me where am I wrong? I am compiling in HEX using FL8.
Regards
castarob
- Wed Jan 22, 2020 4:48 pm
- Forum: 8-Bit PIC
- Topic: Pic12f683 - rs232 FL8 in target do not work
- Replies: 37
- Views: 23231
Re: Pic12f683 - rs232 FL8 in target do not work
Hi Martin, the project compiled with FL6 with reception of characters up to 1200 BD sometimes loses characters but at 600BD it still responds well (it must recognize only a sequence of 3 characters). However if you tell me that it is risky I will certainly change the processor with what you recommen...
- Wed Jan 22, 2020 11:43 am
- Forum: 8-Bit PIC
- Topic: Pic12f683 - rs232 FL8 in target do not work
- Replies: 37
- Views: 23231
Re: Pic12f683 - rs232 FL8 in target do not work
Hi Benj,
my serious distraction error but after correcting it again my target doesn't want to work.
I have adapted the program to FL6, which I am attaching, and recompiled (HEX) and it also works on my target .
(?)
Regards
my serious distraction error but after correcting it again my target doesn't want to work.
I have adapted the program to FL6, which I am attaching, and recompiled (HEX) and it also works on my target .
(?)
Regards
- Tue Jan 21, 2020 4:18 pm
- Forum: 8-Bit PIC
- Topic: Pic12f683 - rs232 FL8 in target do not work
- Replies: 37
- Views: 23231
Re: Pic12f683 - rs232 FL8 in target do not work
Hi Benj,
thanks for the tips but unfortunately even after the changes only emulation works but not yet in the target.
I don't know if it's important, but I always compile in HEX.
Attached the program with the changes.
Regards
thanks for the tips but unfortunately even after the changes only emulation works but not yet in the target.
I don't know if it's important, but I always compile in HEX.
Attached the program with the changes.
Regards
- Tue Jan 21, 2020 12:20 pm
- Forum: 8-Bit PIC
- Topic: Pic12f683 - rs232 FL8 in target do not work
- Replies: 37
- Views: 23231
Pic12f683 - rs232 FL8 in target do not work
Hi, I ask for help to solve a problem of my program not working. In emulation with FL8 the program works but once loaded in the target it does not work. I had created the same program with FL6 and it worked without problems even in the target. I was unable to compile (HEX) it with FL7 because it gav...
- Sat Oct 20, 2018 6:16 pm
- Forum: 8-Bit PIC
- Topic: EBM019 compilation errors
- Replies: 1
- Views: 6717
EBM019 compilation errors
Hello, can anyone help me with the use of the EBM019 component? I tried to apply it in my small software first using Flowcode6 and then Flowcode7 but I get compilation errors that I do not know how to correct. I abandoned my software and downloaded the demo "EBM019 Example" and had no erro...
- Fri Sep 21, 2018 5:40 pm
- Forum: 8-Bit PIC
- Topic: PiC18F1220 problems whit WD and INT
- Replies: 9
- Views: 11150
Re: PiC18F1220 problems whit WD and INT
Hi LeighM, thanks so much! I get it. I made a mistake but why did it work in the simulation? It confused me a lot. Now it works even if I had to move the output, which I was flickering to check if the INT worked, from RA4 to RA3 as R4 did not flicker, I still do not know why but I will understand .....
- Fri Sep 21, 2018 11:52 am
- Forum: 8-Bit PIC
- Topic: PiC18F1220 problems whit WD and INT
- Replies: 9
- Views: 11150
Re: PiC18F1220 problems whit WD and INT
Good morning, I thank you for the suggestion, at the time I had made the correction and it worked. Since I was not able to run the INT and fell into frustration and had to deliver the project to the client, I had the software made by a third person in C language. Now I have made a new project that i...
- Thu Jun 28, 2018 10:08 am
- Forum: 8-Bit PIC
- Topic: PiC18F1220 problems whit WD and INT
- Replies: 9
- Views: 11150
Re: PiC18F1220 problems whit WD and INT
Hi Martin thanks for your help, attached I send you the program that, as I said, with Flowcode6 is compiled without problems but gives errors with compilation in Flowcode7. You will find in "main" a disabled icon that calls INT2 that I have masked because although it works in simulation, i...
- Wed Jun 27, 2018 8:50 pm
- Forum: 8-Bit PIC
- Topic: PiC18F1220 problems whit WD and INT
- Replies: 9
- Views: 11150
Re: PiC18F1220 problems whit WD and INT
Hi, is there anyone who can give me advice on how to solve mistakes? I compile my program with Flowcode6 and the compilation is OK without errors, I load the .Hex file in my target and everything works properly. When I try to compile the same program with Flowcode7 I receive many error reports that ...
- Wed May 23, 2018 3:17 pm
- Forum: 8-Bit PIC
- Topic: PiC18F1220 problems whit WD and INT
- Replies: 9
- Views: 11150
Re: PiC18F1220 problems whit WD and INT
Hi LeighM,
thanks for the reply, but in the properties is set "software". Unless you're referring to anything else that I do not know. Sorry but I'm not very experienced.
thanks for the reply, but in the properties is set "software". Unless you're referring to anything else that I do not know. Sorry but I'm not very experienced.
- Wed May 23, 2018 12:22 pm
- Forum: 8-Bit PIC
- Topic: PiC18F1220 problems whit WD and INT
- Replies: 9
- Views: 11150
PiC18F1220 problems whit WD and INT
Goodmorning everyone, since several days I try to get out of a problem with numerous attempts but I can not, if someone could help me I would be grateful. I am using a PIC18F1220 and in simulation with flowcode6 my program works very well but when I load it in my target the program, (compiled in HEX...