Search found 236 matches

by BaCaRdi
07 Nov 2008 15:22
Forum: Development Boards Wishlist
Topic: PicFlash for Linux?
Replies: 11
Views: 12057

I thought I just said that? You want to wait? Just pick up a pickit2 and use that for the time being. Did you not know that an emulator and a virtual machine is one in the same more or less? Hardware level..software level... -Marc All we really need is a linux version of PicFlash. Although an IDE/co...
by BaCaRdi
19 Oct 2008 19:12
Forum: mikroPascal General
Topic: Check button state is very slow
Replies: 10
Views: 4975

Great, glad I could help..anytime;)

-Marc
Snake4 wrote:Thanks, it is working now.

Code: Select all

porta.2 = 1 and porta.2 = 0
do the job.

Snake :D
by BaCaRdi
18 Oct 2008 21:01
Forum: mikroPascal General
Topic: Check button state is very slow
Replies: 10
Views: 4975

What about a Do while block?

Something like this could work;

While porta.2 = 1 do
begin
My_Byte := My_Byte +1;
Pwm_Change_Duty:= My_Byte;
end;

While porta.2 = 0 do
begin
My_Byte := My_Byte -1;
Pwm_Change_Duty:= My_Byte;
end;

-Marc
by BaCaRdi
18 Oct 2008 17:58
Forum: mikroPascal General
Topic: Check button state is very slow
Replies: 10
Views: 4975

Not a problem, I figured such with the code blocks. Sure I see what you doing, basic fun LED displays:) Your English is good, not bad at all ;) Yes, I have seen Pulse Width Modulation before...a few times...hehe ok, so a few more questions:) First what PIC are you using and at what Clock speed? -Mar...
by BaCaRdi
17 Oct 2008 18:26
Forum: mikroPascal General
Topic: Check button state is very slow
Replies: 10
Views: 4975

the delay(debounce) is part of the internal function. You can very well do this your self, but you would need to not use the Button function. Sure post your code, best method; **Insure you put the ['code'] in front of the actual start of the code, at the end of the code put in it's terminator ['/cod...
by BaCaRdi
17 Oct 2008 07:30
Forum: mikroPascal General
Topic: Check button state is very slow
Replies: 10
Views: 4975

With that amount of code, and without the init sections, I can't isolate the issue. However, something like this might help you(Strait from the manual); Example reads RB0, to which the button is connected; on transition from 1 to 0 (release of button), PORTD is inverted: while true do begin if Butto...
by BaCaRdi
16 Oct 2008 19:32
Forum: mikroPascal General
Topic: Check button state is very slow
Replies: 10
Views: 4975

Well sure you could...it depends what fast is in your definition. A measurement of time would help. Fast in what way, us ms?

Off the top of my head, I am guessing you want fast, up your clock speed;)

Otherwise its time for in-line asm.
-Marc
by BaCaRdi
15 Oct 2008 05:44
Forum: Development Boards
Topic: Ametter module
Replies: 0
Views: 1349

Ametter module

Guys, working on power stingy designs, I really think a nice module that can test various port pins, the the sourced/sinked current and make a nice display or even an basic mix-signal scope out of the already available hardware. That basic functionality is being combined, and for most, provided free...
by BaCaRdi
15 Oct 2008 05:33
Forum: mikroPascal General
Topic: Sleep?
Replies: 3
Views: 2427

This is working as expected now, thanks janni ;) I did swap the sleep statement to the end, but that is how my logic or lack there-of is working..haha Now monitoring the power consumption is very simple. Matter of fact I have decide to create myself an ammeter module for my EasyPIC5 board:) Have to ...
by BaCaRdi
11 Oct 2008 22:25
Forum: mikroPascal General
Topic: AllDigital routine for P16 and P18 MCU
Replies: 4
Views: 2798

Use this all the time:) It is already part of my ME Library..hehe

-Marc
yo2lio wrote:Mikroe team , can you include this library in the next version of compiler ? Or it's too late ?
by BaCaRdi
08 Oct 2008 22:10
Forum: mikroPascal General
Topic: Sleep?
Replies: 3
Views: 2427

HAHA why I asked....lol Thank you very much Janni, very useful as usual:) Much Appreciated, -Marc Well, it's not one of your brightest ideas :wink: . If you want to check whether PIC goes to sleep and wakes up at port change, just form a loop with sleep statement in it, followed by some pin change (...
by BaCaRdi
08 Oct 2008 05:23
Forum: mikroPascal General
Topic: Sleep?
Replies: 3
Views: 2427

Sleep?

I am running this on a 12F683(My Favorite Small PIC) @ 8Mhz. I am trying to be very stingy on power, so I am trying something like this; Procedure Interrupt; Begin If TestBit(INTCON,GPIF) = 1 then GPIO.1 := 1; //HIGH LED GP1 ClearBit(INTCON,GPIF); //Clear GPIF Delay_MS(625); //Delay, Yes I know its ...
by BaCaRdi
08 Oct 2008 04:10
Forum: Development Boards
Topic: DAC via USART
Replies: 2
Views: 1475

Yeah, what I am thinking. Cheers, let me go check some things...


-Marc
rmteo wrote:0.16% at 9600 baud should not be a problem. I have used up to 115200 baud with a PIC16 on an EP4.

I would check your oscillator and clock settings. Sure looks like you are NOT actually getting 9600 baud.
by BaCaRdi
08 Oct 2008 01:22
Forum: Development Boards
Topic: DAC via USART
Replies: 2
Views: 1475

DAC via USART

I have a EP5 board, running at 8mhz PIC16f877a, 9600,N,8,1 set in terminal program. I am using MikroPascal 8.1, I can't for the life of me get anything legible on the terminal. Am I doing something wrong? I get nothing but high acsii char on the screen, which speed up with adjusting the POT. Is this...
by BaCaRdi
08 Oct 2008 01:16
Forum: Development Boards Wishlist
Topic: PicFlash for Linux?
Replies: 11
Views: 12057

For the time being, I have purchased a Microchip Pickit2, I am using that for burning the hex via pk2cmd in Linux. I compile in window, virtually, not tried it in wine yet. I wrote a shell-script that burns the hex with the PicKit2 device via pk2cmd. I use this with my EasyPIC5 all the time;) I am a...

Go to advanced search