Thank you, Richard, for the explanation.
Now I have a clearer understanding of how to work with variables and share them in ASM and PBP.
Active TMR1, yes. I just forgot to comment on this line....
Type: Posts; User: louislouis; Keyword(s):
Thank you, Richard, for the explanation.
Now I have a clearer understanding of how to work with variables and share them in ASM and PBP.
Active TMR1, yes. I just forgot to comment on this line....
What I trying. Omit PBP code from ASM interrupt routine.
But this try not work, of course.
Where is the problem?
#CONFIG
__config _CONFIG1, _FOSC_INTOSC & _WDTE_OFF & _PWRTE_ON &...
Thanks Richard for the answer. I understand. In more complex cases, this could cause problems.
In my case, it works, but it is not correct to combine it like this.
So in PBP use only On Interrupt...
In my minimalist mania, I tried using interrupts. On pin RA3 hooked up 10k pullup and pushbutton to ground. On pin RA5 LED. First I tried the On Interrupt statement from PBP not work at all. Then I...
I tested your codes, both works. The second example with TMR1 I like the most because maintain 4MHz clock. And yes, it compiles only 34 words. Just one more word than mine when I manipulate the clock...
Even better, only 33 words.
#CONFIG
__config _CONFIG1, _FOSC_INTOSC & _WDTE_OFF & _PWRTE_ON & _MCLRE_OFF & _CP_OFF & _CPD_OFF & _BOREN_ON & _CLKOUTEN_OFF & _IESO_ON & _FCMEN_ON
__config...
Hi,
I wonder how small the code can it be if I use as many internal peripherals as I could (and I know).
The task is simple, alternately slowly flash LEDs on ports RA0 and RA1. If the supply ...
testing
123
evnivnvivninvn
kjninie
kjji
Not helped at all, I try timeouts from 200, 300 up to 600 still freezes.
I go hunting a few 16F688 PICs in SMD package and stay with these chips in this application.
Even in proteus 8 simulator appears the same behavior. After sending a few commands the PWPS stops working and the PIC freezes.
I tested PIC12F1840, that's strange.
100% sure, here is my LST file:
9249
I tested the PIC12F1840 and PIC16F1824 with software serial input. PIC frequency set to 8MHz as required PBP at 9600 baud.
It's working, but the response is kinda slow.
'* Notes :...
Unfortunately, same behavior. After sending the command via Bluetooth (I send the command for example: hserout ["Q",dec 155,10,11] in a loop while the pushbutton is pressed). After a while, the servo...
Hi Richard,
I don't know, I'm just guessing.
Here the code for PIC 16F688 working just fine:
'* Notes : PIC16F688 *...
Hi Folks,
I actually discovered a problem with DT PWPS servo pulse generator.
If I use hardware USART (hserin) for receiving commands from Bluetooth module and the PWPS plugin is active...
You can view the page at http://www.picbasic.co.uk/forum/content.php?r=552-4-bit-7-segment-display-with-two-74HC595
Of course, you're right. Now something happening. The display lit up and does some counting and flickering with segments.
That with your firstly posted code. Now figuring out how to display numbers...
That default address I got from product listing:
IIC address: default address 0X70
A0, A1, A2,: IIC data address control terminal
IIC address calculation: 0X70+A0+A1+A2 (floating is 0, shortet...
Thanks for reply. Not working but now more clear for me how to handle this controller. I tried init the controller with default I2c adress $70 like this:
;pic 12F1840
#CONFIG
__config...
Hi folks,
I want to ask members, someone has done working with this HT16K33 14. segment LED backpack in PBP.
https://www.adafruit.com/product/1911
I am trying to get this thing live, but no...
Hi Richard, sorry for later response. Thanks for pointing me in to right way how to do it. Your first method not works for me, the second method polling works just fine but slows down the response...
Cool, thanks. Both pbp,asm version works. Anyway, I tried two encoder types which I had on hand. Both works, but one count two counts to one detent, and the second count four to one detent.
I tried...
Hi All,
I'm struggling around rotary encoder with push button. I read the forum but not find any successfully solved example.
Here is my code:
; PIC16F1847
...
I use them a lot. Easy to use in PBP, here some test blinks:
'****************************************************************
'* Name : APA LED *...
Hi Folks,
I started to play with this RFID reader. For beginning I try to create a simple TAG reader and show the tag number on NOKIA LCD. I can read the tag and display it, but I can't extract the...