Search found 52 matches

by samtin
Wed Feb 04, 2026 11:16 am
Forum: General
Topic: Customizing TMR1
Replies: 8
Views: 240

Re: Customizing TMR1

I am really interested in custom timing and I am trying
to observe how it works, but unfortunately it does not work.
by samtin
Wed Feb 04, 2026 11:09 am
Forum: General
Topic: Customizing TMR1
Replies: 8
Views: 240

Re: Customizing TMR1

The existing code does not generate any signal on pin A0. Why? The oscilloscope is connected to pin A0. Enable code: T1CON = 0x79; // Start timer with Internal clock source, prescaler = 1:8 INTCONbits.PEIE = 1; // Enable peripheral interrupts INTCONbits.GIE = 1; // Enable global interrupts PIE1bits....
by samtin
Wed Feb 04, 2026 9:58 am
Forum: General
Topic: Customizing TMR1
Replies: 8
Views: 240

Re: Customizing TMR1

Hello everyone, I didn't get any signals on pin A0. Can anyone help me? What is the mechanism of the custom code? T1CON is the register where I select the prescale bits, but where are the postscale bits selected? What is the register for setting the final value? Here I found the custom code: https:/...
by samtin
Tue Feb 03, 2026 12:11 pm
Forum: General
Topic: Customizing TMR1
Replies: 8
Views: 240

Re: Customizing TMR1

Thank you very much, it worked.
by samtin
Tue Feb 03, 2026 11:37 am
Forum: General
Topic: Customizing TMR1
Replies: 8
Views: 240

Customizing TMR1

Hello everyone,
I tried to make a custom TMR1 for PIC16F877A and visualize the signals on pin A0 on the oscilloscope, but it doesn't compile.
Can anyone help me? I'm using Flowcode 10.
by samtin
Sun Nov 03, 2024 10:50 am
Forum: General
Topic: test eep
Replies: 0
Views: 4309

test eep

Hello to everyone, The program sequence must run only once in the loop. I have the values ​​key = 0 and key_ = 0 in the loop, but errors appeared and I did not understand why. In the test in this example I have key_ = 0, I write the key_ value to address 2, read address 2 and return the value in key...
by samtin
Wed Oct 16, 2024 8:53 am
Forum: General
Topic: I2C test
Replies: 33
Views: 19917

Re: I2C test

Hi WingNut,
Thank you very much! It was in my eyes, but I couldn't see it. :o
by samtin
Tue Oct 15, 2024 11:31 am
Forum: General
Topic: I2C test
Replies: 33
Views: 19917

Re: I2C test

Where are the options to thank users? I don't see them.
by samtin
Tue Oct 15, 2024 11:22 am
Forum: General
Topic: I2C test
Replies: 33
Views: 19917

Re: I2C test

As I mentioned before, the program works, I did the test on a 24LC512 eeprom and a PIC16F877A microcontroller.
Thank you to Mr. Martin for his involvement and the help that did not take long to come from him.
by samtin
Mon Oct 14, 2024 1:55 pm
Forum: General
Topic: I2C test
Replies: 33
Views: 19917

Re: I2C test

Hi Martin,
It works perfectly, I'll come back later with a more concise flowchart, I have to delete the components that I no longer need.