Search found 654 matches

by stefan.erni
Thu Mar 30, 2017 5:41 pm
Forum: General Programming
Topic: chipkit wi fire USB on connector J11
Replies: 5
Views: 6330

chipkit wi fire USB on connector J11

I use the "bootloader" version of this board. It's great! I can program the board with the USB connector on the top side. On the same connector I can connect the computer with the same cable and make a connection as an rs232 and send/receive date from the computer. It's working with 921kB. Can I use...
by stefan.erni
Wed Mar 29, 2017 10:34 am
Forum: General Programming
Topic: PICKIT WI-Fire PIC32MZ2048EFG100 SD-Card
Replies: 17
Views: 15273

Re: PICKIT WI-Fire PIC32MZ2048EFG100 SD-Card

I need a litle help to solve this IRQ Problem....
by stefan.erni
Tue Mar 28, 2017 5:04 pm
Forum: General Programming
Topic: pic24ep256gp206 how to it run on 70Mhz
Replies: 4
Views: 5406

Re: pic24ep256gp206 how to it run on 70Mhz

Hi Ben
I dont use a quarz
I did the test like in the wiki..
by stefan.erni
Tue Mar 28, 2017 3:47 pm
Forum: General Programming
Topic: pic24ep256gp206 how to it run on 70Mhz
Replies: 4
Views: 5406

pic24ep256gp206 how to it run on 70Mhz

I have a problem with a pic24ep256gp206.
I chosed 70 000 000 Hz for the delay and IRQ.
In the progam I made a delay of 1 Second but the delay is about 10 seconds.
Can I put an C-Code to config it to 70Mhz?
by stefan.erni
Mon Mar 27, 2017 11:11 am
Forum: General Programming
Topic: PICKIT WI-Fire PIC32MZ2048EFG100 SD-Card
Replies: 17
Views: 15273

Re: PICKIT WI-Fire PIC32MZ2048EFG100 SD-Card

Hi Ben

I wrote a small program for the IRQ
It's working if I disable the part.
What can be the problem? In the attachment is the small program.
IRQ1_1.PNG
(21.24 KiB) Downloaded 8657 times
by stefan.erni
Fri Mar 24, 2017 11:14 am
Forum: General Programming
Topic: PICKIT WI-Fire PIC32MZ2048EFG100 SD-Card
Replies: 17
Views: 15273

Re: PICKIT WI-Fire PIC32MZ2048EFG100 SD-Card

Hi Ben

I changed and in the Box now I it's 0s.
something changed with the IRQ.
But I can put only one command in the IRQ-macro. If it's more than one the programm is not running anymore
by stefan.erni
Fri Mar 24, 2017 10:43 am
Forum: General Programming
Topic: PICKIT WI-Fire PIC32MZ2048EFG100 SD-Card
Replies: 17
Views: 15273

Re: PICKIT WI-Fire PIC32MZ2048EFG100 SD-Card

Hi Ben First I would like to mention that the chipkit WI-Fireboard is very nicely integrated into Flowcode. Thank you very much. But I have a little problem with the IRQ ant the chipkit Wi-Fire I tried to change from 01 to 0s but in the bootlaoder is alway this 01. I can not even click in the box wi...
by stefan.erni
Thu Mar 23, 2017 5:34 pm
Forum: Flowcode V7
Topic: PICKIT WI-Fire PIC32MZ2048EFG100 200MHz
Replies: 12
Views: 9581

Re: PICKIT WI-Fire PIC32MZ2048EFG100 200MHz

Hi Ben

I have now FC7.2 and I have the Problem with the IRQ. The program stop if I use an IRQ
by stefan.erni
Fri Mar 17, 2017 5:59 pm
Forum: General Programming
Topic: string always 2 numbers 01 02
Replies: 1
Views: 3058

string always 2 numbers 01 02

I have to convert an integer to a string. The integer has a value from 1 to 12.

The string needs always 2 numbers

result_string = ToString$ (1) // the result_string is "1" but I need "01"
by stefan.erni
Fri Mar 17, 2017 10:22 am
Forum: Fixed bugs
Topic: "Refreshing components" FC7.1 frozen [Solved]
Replies: 14
Views: 19379

Re: "Refreshing components" FC7.1 frozen

I instaled today FC7.2 but it's the same. FC7.2 is crashing to. So I still use my win10 computer for FC7 and wait for 7.3....
by stefan.erni
Fri Mar 17, 2017 9:14 am
Forum: General Programming
Topic: RESET_CPU()
Replies: 3
Views: 4584

Re: RESET_CPU()

Hi Ben

I found the "Problem". I removed the Initial Value (0,1,0x2,0x03,'A','b',"Hello") from the EEprom-properties and now there is no 40seconds waiting time for programing anymore.
by stefan.erni
Thu Mar 16, 2017 6:01 pm
Forum: General Programming
Topic: RESET_CPU()
Replies: 3
Views: 4584

Re: RESET_CPU()

Hi Ben Thank You. I saw it in the ICD-File. I have to enable the watchdog an run a whileloop for ever. something else I have. I used the eeprom in the chip.The bad side effect is, that if I download the program to the chip, it's takes 40seconds time to write EEdatamemory. But I use only 3Byte in the...
by stefan.erni
Thu Mar 16, 2017 4:38 pm
Forum: General Programming
Topic: RESET_CPU()
Replies: 3
Views: 4584

RESET_CPU()

Hi Ben Is there a way to reset the cpu like an another compiler? ///////////////////////////////////////////////////////////////// Control // Control Functions: RESET_CPU(), SLEEP(), RESTART_CAUSE() // Prototypes: _bif int8 restart_cause(void); _bif void reset_cpu(void); _bif void sleep(void); _bif ...
by stefan.erni
Mon Mar 13, 2017 3:00 pm
Forum: General Programming
Topic: FAT SD-Card is nice to use, but (very) slow
Replies: 14
Views: 12287

Re: FAT SD-Card is nice to use, but (very) slow

Hi Ben Now I have to begin with the 10channel recorder. For this project I try to use the chipkit wi-fire with the PIC32MZ2048. The board include a micro-SDcard connector. I tested the card but it's not fast enough. Is there a possibility to to increase the speed. This Pic has much more ram. Maybe w...
by stefan.erni
Wed Mar 08, 2017 3:36 pm
Forum: General Programming
Topic: Use a switch with a range ( not a fix number )
Replies: 3
Views: 4662

Re: Use a switch with a range ( not a fix number )

Thanke You both

With this help I did a C Code...
It's small in the mainpart and the big part is easy to copy-paste.
FC7 is really nice to use
switch_range_in_main.PNG
(8.46 KiB) Downloaded 2929 times

switch_range.PNG
(27.63 KiB) Downloaded 86 times
by stefan.erni
Wed Mar 08, 2017 12:15 pm
Forum: General Programming
Topic: Use a switch with a range ( not a fix number )
Replies: 3
Views: 4662

Use a switch with a range ( not a fix number )

Hi
How to use a switch, but the case is a range ( not a fix number )
like 1-500,501-1000,1001-1500
by stefan.erni
Fri Mar 03, 2017 3:48 pm
Forum: General Programming
Topic: FAT SD-Card is nice to use, but (very) slow
Replies: 14
Views: 12287

Re: FAT SD-Card is nice to use, but (very) slow

Hi Ben
perfect! Thank You. And here a sinus 200Hz Signal sampled with 2kHz and saved as data like a wavefile on a micro-sdcard and open with Audacity (import raw).
recording.PNG
(40.05 KiB) Downloaded 319 times
by stefan.erni
Fri Mar 03, 2017 2:13 pm
Forum: General Programming
Topic: FAT SD-Card is nice to use, but (very) slow
Replies: 14
Views: 12287

Re: FAT SD-Card is nice to use, but (very) slow

Hi Ben Thank You for the special FAT.It's working faster and I can use my 2channel recorder. I have now a another small problem to write in a corect way the data to the wave file. before with CCS I dit it like this to convert the 10Bit uint from the AD-converter to little Endian signed16Bit. But how...
by stefan.erni
Mon Feb 13, 2017 1:56 pm
Forum: General Programming
Topic: FAT SD-Card is nice to use, but (very) slow
Replies: 14
Views: 12287

Re: FAT SD-Card is nice to use, but (very) slow

Hi Ben
"We have a new version of Flowcode"
That nice to hear. Is this FC8 or FC7.2 ? And when can I have it?
Is there a newsletter about FC or general?
by stefan.erni
Thu Feb 02, 2017 3:57 pm
Forum: General Programming
Topic: FAT SD-Card is nice to use, but (very) slow
Replies: 14
Views: 12287

Re: FAT SD-Card is nice to use, but (very) slow

Hi Ben Thank for the FAT. I'll test that. And I hope for the 2channel 2kHz recorder with this older PIC will work. Soon I start to go on with a 10channel 2Khz recorder. I saw microchip has now ARM® Cortex® from Atmel As if there are faster (300Mega) and need less power... They have a HSMCI port (Hig...
by stefan.erni
Tue Jan 31, 2017 10:57 am
Forum: General Programming
Topic: FAT SD-Card is nice to use, but (very) slow
Replies: 14
Views: 12287

Re: FAT SD-Card is nice to use, but (very) slow

Yes it's every 64times that is going long. Unfortunately I need the FAT. A ringbuffer is not so practical, the 18LF6722 has "only" 3936 Bytes RAM. I hope it's possible to do some improvement of the speed. I think we are close that to the 2Khz goes .... Anyway the FAT System from you is very comforta...
by stefan.erni
Mon Jan 30, 2017 4:21 pm
Forum: General Programming
Topic: FAT SD-Card is nice to use, but (very) slow
Replies: 14
Views: 12287

FAT SD-Card is nice to use, but (very) slow

Hi Ben At first, the Fat from FC is realy nice to use and is working fine. It's create file by file on a card. I have PIC 18LF6722. It's working on 32Mhz. There is a SD Card on the board. The card is working with clock/4 I used the Blockwrite (write file sector). The goal is to sample 2Channel 16Bit...
by stefan.erni
Thu Jan 26, 2017 5:17 pm
Forum: General Programming
Topic: PIC 18LF6722 PLLx4 How to turn it on for 40MHz
Replies: 1
Views: 2859

PIC 18LF6722 PLLx4 How to turn it on for 40MHz

Hi Ben I have a PIC 18LF6722. I like to config like in the Manual on 40MHz (or 32Mhz). I can not make it faster than 8Mhz. I can config in C-code the two Register but not the CONFIG1H FC7 can not found it. Can I define it by my self if I know the addres (300001h)? OSCCON = 0x70;// 8Mega OSCTUNE = 0x...
by stefan.erni
Tue Jan 24, 2017 6:01 pm
Forum: General Programming
Topic: Pic 18LF1622 buffer sd-card
Replies: 4
Views: 4769

Re: Pic 18LF1622 buffer sd-card

Oh Thank you Ben
I have a wish more ....
Write to the first block before I close the file. I need it to write in the fileheader
- how many block there is in the recorded file(data)
-start and stop time
by stefan.erni
Tue Jan 24, 2017 4:10 pm
Forum: General Programming
Topic: Pic 18LF1622 buffer sd-card
Replies: 4
Views: 4769

Re: Pic 18LF1622 buffer sd-card

Hi Ben
Is it possible to have longer File name as the 8.3?