Search found 69 matches

by alvaroevc5
18 Apr 2022 23:34
Forum: mikroC PRO for PIC General
Topic: How is USB_BREAK() supposed to be used?
Replies: 1
Views: 469

Re: How is USB_BREAK() supposed to be used?

Well, I went ahead and tried a couple of things. I forcefully blocked program flow on the microcontroller in order to use USB_BREAK(), then, I called the function from a few interrupt sources to test how it worked, but nothing ever happened. My question now is if this function only works when servic...
by alvaroevc5
13 Apr 2022 00:32
Forum: mikroC PRO for PIC General
Topic: How is USB_BREAK() supposed to be used?
Replies: 1
Views: 469

How is USB_BREAK() supposed to be used?

Hello Mikroe people. Here I am once again in the adventures of USB using PIC microcontrollers. The question here is really the title, the help section doesn't say much about it but just the fact that it acts as a WDT, but it doesn't give a clue on how it is supposed to be implemented. Just saying th...
by alvaroevc5
11 Apr 2022 21:59
Forum: User Projects
Topic: Question about WS2812B (Neopixels)
Replies: 10
Views: 2185

Re: Question about WS2812B (Neopixels)

@Thomas.Pahl@t-online.de, thanks for the advice. I also thought about using a separate and very small microcontroller just as a WS2812B driver, and to be frank it's not such a bad idea, considering prices for low end PICs now days. The thing here is that, when it comes to lowering prices as much as ...
by alvaroevc5
09 Apr 2022 00:26
Forum: User Projects
Topic: Question about WS2812B (Neopixels)
Replies: 10
Views: 2185

Re: Question about WS2812B (Neopixels)

If I read right, you use interrupts? That is not a good idea with WS2812. Perhaps your problem is there. When I use the software solution all interrupts are off. This interrupt thing was bugging me after I read it, and guess what, it worked, my WS2812B bit-banging works flawless with 24 LEDs, maybe...
by alvaroevc5
08 Apr 2022 22:02
Forum: User Projects
Topic: Question about WS2812B (Neopixels)
Replies: 10
Views: 2185

Re: Question about WS2812B (Neopixels)

Interesting posts right there. From what I see, when people use these Neopixels on PIC, they either don't use any other peripherals on the chip and make it a single purpose application or they use specialized internal components as the CLC. I have come across those PDFs and tutorials with CLC, there...
by alvaroevc5
06 Apr 2022 23:44
Forum: User Projects
Topic: Question about WS2812B (Neopixels)
Replies: 10
Views: 2185

Re: Question about WS2812B (Neopixels)

Wait... I had an idea and I hope people may follow along :idea: Shouldn't I be able to do the same thing proposed in that tutorial, but instead of using the SPI bus, I could use the UART pins? If my FOSC after applying the PLL is 48MHZ, and my instruction frequency is therefore 12MHZ, I should be ab...
by alvaroevc5
06 Apr 2022 19:53
Forum: User Projects
Topic: Question about WS2812B (Neopixels)
Replies: 10
Views: 2185

Re: Question about WS2812B (Neopixels)

Well, I am using my 18F2550 at 48MHZ clock, which turns into 12MHZ instruction cycle. I saw the video, it is in english actually :D. The problem with that method is that I am using INT0-INT2 interrupts on this microcontroller, which are inconveniently located exactly over the same pins for SPI proto...
by alvaroevc5
05 Apr 2022 23:38
Forum: User Projects
Topic: Question about WS2812B (Neopixels)
Replies: 10
Views: 2185

Question about WS2812B (Neopixels)

Hello mikroE people. I recently managed to emulate the WS2812B protocol on a 18F2550 and it kind of works. The problem is that, when toggling some LEDs in a row using a WS2812B ring, it sometimes happens that other LEDs flicker with different unintended colors and brightness, and it happens very ran...
by alvaroevc5
10 Mar 2022 23:59
Forum: User Projects
Topic: Question about multiplexing mechanical encoders
Replies: 2
Views: 1167

Re: Question about multiplexing mechanical encoders

It took me a while to figure out your code, specially because I program PICs with C, but I managed to digest it. I like the way that is being handled, it is quite practical, it works, but it has a bit of a flaw, not too critical though: Encoder Signals.jpeg To explain myself, what you are doing in y...
by alvaroevc5
02 Mar 2022 00:57
Forum: User Projects
Topic: Question about multiplexing mechanical encoders
Replies: 2
Views: 1167

Question about multiplexing mechanical encoders

Hello MikroE people. I was wondering if anyone knows a way of how to use multiple encoders with a low end microcontroller, like the PIC 18F2550. I had the idea to multiplex them, but unfortunately, the cheap KY040 modules have NORMALLY CLOSED channels, which means that, if I multiplex it, every time...
by alvaroevc5
18 Feb 2022 22:54
Forum: mikroC PRO for PIC General
Topic: USB HID Volume Knob Strange Behaviour
Replies: 1
Views: 613

Re: USB HID Volume Knob Strange Behaviour

So, I don't know why I didn't think of this before, maybe you get so focused on the complex side of things that sometimes you don't see the easy stuff that is right on front of your nose... I confirmed that the volume behavior is just like that on a computer, or at least on windows, it goes up slowl...
by alvaroevc5
05 Feb 2022 00:54
Forum: mikroC PRO for PIC General
Topic: USB HID Volume Knob Strange Behaviour
Replies: 1
Views: 613

USB HID Volume Knob Strange Behaviour

Hello MikroC people. So, after quite a long time messing around with USB HID on MikroC Pro using a PIC18F2550 , I managed to get a volume knob working with my requirements.... kind of ... I was wondering if when lowering the volume, is it supposed to go faster than when volume goes u p? Because that...
by alvaroevc5
27 Jan 2022 23:04
Forum: mikroC PRO for PIC General
Topic: How does USB usage limits other interrupts?
Replies: 6
Views: 1634

Re: How does USB usage limits other interrupts?

Hello once again. The response as a whole is quite educative, though I have to disagree with the fact that anything at all is extensively documented, there are fairly good and basic working examples, but not highly documented, but that's it, the rest of it is a very good explanation of pretty much e...
by alvaroevc5
13 Dec 2021 23:50
Forum: mikroC PRO for PIC General
Topic: Mixed feelings (All Because USB libraries on Mikroc PRO)
Replies: 1
Views: 597

Mixed feelings (All Because USB libraries on Mikroc PRO)

Hello world. I don't know how to NOT sound like that kind of person, the one who is a big hater on the tool just because things don't work as expected, but even though I don't have decades of experience programming PICs, I am not that of an amateur either, so I usually blame it on myself, until I so...
by alvaroevc5
13 Jan 2021 19:08
Forum: mikroC PRO for PIC General
Topic: How does USB usage limits other interrupts?
Replies: 6
Views: 1634

Re: How does USB usage limits other interrupts?

I tested the project again, implementing now TIMER1 instead of TIMER0 for the same purpose, and the issue is the same. It seems like subsequent calls to any timer faster or at the same speed as USB interrupts, actually affects negatively USB routines , meaning by this that USB cannot coexist with in...

Go to advanced search