Search found 15 matches

by DarkWolf
22 Feb 2022 11:40
Forum: mikroPascal PRO for PIC General
Topic: Two PIC18s via USB
Replies: 1
Views: 1143

Two PIC18s via USB

Good day! Interested in such a question. There are two PIC18F47J53 microcontrollers with a USB interface. Is it possible to organize data reception and transmission between these microcontrollers via USB? I will be grateful for an example!
by DarkWolf
03 Nov 2021 07:48
Forum: mikroPascal PRO for PIC General
Topic: PIC18 Software UART
Replies: 0
Views: 1061

PIC18 Software UART

Hello everyone! Need help with the implementation or a ready-made library for working with Software UART on mikropascal. When the Tx and Rx pins are connected to different ports. For example, Tx - PORTB.B6, Rx - PORTC.B2. Thanks for any help.
by DarkWolf
23 Jul 2020 15:30
Forum: mikroBasic PRO for PIC General
Topic: Mmc_Fat_Assign
Replies: 2
Views: 975

Re: Mmc_Fat_Assign

Hello.
There are two options for your problem:
1. There is no connection with the MMS card.
2. The file name is incorrect.
by DarkWolf
13 May 2020 13:47
Forum: mikroPascal PRO for PIC General
Topic: Problem with variables in memory
Replies: 18
Views: 6819

Re: Problem with variables in memory

Hi,

I also had variable errors at a certain level of optimization. It worked when this variable was excluded from optimization. The volatile modifier does this.
by DarkWolf
13 May 2020 12:15
Forum: mikroPascal PRO for PIC General
Topic: Bootloader for PIC18F47J53
Replies: 10
Views: 3707

Re: Bootloader for PIC18F47J53

Hi, Thanks to everyone, everything worked out for me and it works as it should! My bootloader will start at 0x400 (1024 byte). From 0x000 to 0x400 I copy goto main, interrupt and table GOTO. The need to reserve 1024 bytes was caused by the erase flash function FLASH_Erase_1024(). I can’t erase a sma...
by DarkWolf
06 May 2020 09:10
Forum: mikroPascal PRO for PIC General
Topic: Bootloader for PIC18F47J53
Replies: 10
Views: 3707

Re: Bootloader for PIC18F47J53

hi, I'll bring it up again. The loader I wrote works well if the downloaded program takes up no more than 64K of memory. If it exceeds, a large GOTO table appears. Can you tell me how to copy it to the loader?
by DarkWolf
28 Mar 2019 09:52
Forum: mikroPascal PRO for PIC General
Topic: Remapped USART PIC18F47J53
Replies: 3
Views: 1819

Re: Remapped USART PIC18F47J53

Hello. Thanks for your help.
How to make remap USART2 I understand. It will work on pins RD4 and RD5. But I can't understand if I can remap USART1 and how to use it after that? After reading the first post moved new pins USART1 RB6,RC2. It is necessary to make remap USART1 and USART2.
by DarkWolf
06 Mar 2019 09:27
Forum: mikroPascal PRO for PIC General
Topic: Remapped USART PIC18F47J53
Replies: 3
Views: 1819

Remapped USART PIC18F47J53

Hi.

Tell me, I need to do remapped USART 1 and USART 2.
Usart 1 - RC0 (Rx), RC1 (Tx)
Usart 2 - RC5 (Rx), RC6 (Tx)

Can I do it? Or I need to use for USART RC6 (Tx) RC7 (Rx). If you can tell me a sample code.
Thanks in advance for your help!
by DarkWolf
11 Feb 2019 09:30
Forum: mikroPascal PRO for PIC General
Topic: Bootloader for PIC18F47J53
Replies: 10
Views: 3707

Re: Bootloader for PIC18F47J53

Good afternoon.
I attach the latest version of the project loader and the working program.
TestPrj - blinking LEDs in the scroll of the encoder.
AfterUpdate - copied the firmware after boot loader.
I would be very grateful if you could help.
by DarkWolf
06 Feb 2019 09:40
Forum: mikroPascal PRO for PIC General
Topic: Bootloader for PIC18F47J53
Replies: 10
Views: 3707

Re: Bootloader for PIC18F47J53

I wrote the bootloader needed to load the firmware into the flash memory of the controller. The bootloader is 16,240 bytes. It was decided to place the loader at the address: 0x1BFF8. From address 0x0000 to address 0x0128 (296 bytes), unknown to me information of the loader is placed. I can not unde...
by DarkWolf
25 Jan 2019 15:02
Forum: mikroPascal PRO for PIC General
Topic: Bootloader for PIC18F47J53
Replies: 10
Views: 3707

Re: Bootloader for PIC18F47J53

That's what I got at the moment: program BootLoadSPI; // MMC module connections var Mmc_Chip_Select:sbit at PORTE.B2; var Mmc_Chip_Select_Direction:sbit at TRISE.B2; var Filename: string[14]; procedure interrupt(); org 0x2C30; begin end; procedure interrupt_low(); org 0x2C60; begin end; Function SDI...
by DarkWolf
22 Jan 2019 08:08
Forum: mikroPascal PRO for PIC General
Topic: Bootloader for PIC18F47J53
Replies: 10
Views: 3707

Re: Bootloader for PIC18F47J53

Sorry, wrong explanation. The loader should be placed at the beginning of memory, not at the end.
by DarkWolf
21 Jan 2019 09:09
Forum: mikroC PRO for PIC General
Topic: GPS and GPRS interfacing
Replies: 2
Views: 994

Re: GPS and GPRS interfacing

It should be possible, in sim808 and other works from the GPRS SIM card GPS is a separate module.
by DarkWolf
18 Jan 2019 12:32
Forum: mikroPascal PRO for PIC General
Topic: Bootloader for PIC18F47J53
Replies: 10
Views: 3707

Bootloader for PIC18F47J53

Hi, all. I am developing a bootloader for PIC18F47J53. The firmware is stored on the SD card. I can not understand how to go to the execution of my program and how to shift the address of interrupts. The bootloader should be located at address 0x0000. Вот что у меня получилось: program BootLoadSPI; ...
by DarkWolf
18 Jan 2019 11:50
Forum: mikroPascal PRO for PIC General
Topic: Help! Bootloader for PIC18F47J53
Replies: 0
Views: 1113

Help! Bootloader for PIC18F47J53

Good day! I am developing a bootloader for the PIC18F47J53. The firmware in the form of a BIN file lies on the SD card. I check for the presence of a new firmware and, if there is, I am installing it. Tell me how to allocate addresses for the functions of the loader? How to go to the execution of th...

Go to advanced search