Author |
Message |
Topic: Driver for st7920 128x64 LCD |
andromeda92
Replies: 27
Views: 249630
|
Forum: Code Library Posted: Tue Aug 29, 2017 1:23 pm Subject: Driver for st7920 128x64 LCD |
hi,
i have glcd 128x64 st7920, its exist library for driving st7920 with SPI ?
Thanks. |
Topic: [RESOLVED] Not enough RAM for all variables ? |
andromeda92
Replies: 6
Views: 15081
|
Forum: General CCS C Discussion Posted: Wed Aug 02, 2017 10:33 am Subject: [RESOLVED] Not enough RAM for all variables ? |
I translated correctly the program for ccs, so for the constant works I was forced to put #device CONST = ROM.
I also put the clock at 48Mhz because I have timmings problems, for example the screen ... |
Topic: [RESOLVED] Not enough RAM for all variables ? |
andromeda92
Replies: 6
Views: 15081
|
Forum: General CCS C Discussion Posted: Wed Aug 02, 2017 7:56 am Subject: [RESOLVED] Not enough RAM for all variables ? |
Yes you have right the array was defined as a const but i deleted keywork
const because i have this error:
attempt to create a pointer to a constant.
font.h
unsigned char Courier_New_Bold_20 ... |
Topic: [RESOLVED] Not enough RAM for all variables ? |
andromeda92
Replies: 6
Views: 15081
|
Forum: General CCS C Discussion Posted: Wed Aug 02, 2017 3:30 am Subject: [RESOLVED] Not enough RAM for all variables ? |
Hi,
When i compile i have this error message.
PIC18F4550 with 16Mhz crystal
CCS version 5.0.15
This message appears when i include file font.h
#include "font.h"
This file ... |
Topic: PIC18F4550 configuring SPI |
andromeda92
Replies: 7
Views: 18375
|
Forum: General CCS C Discussion Posted: Wed Aug 02, 2017 3:18 am Subject: PIC18F4550 configuring SPI |
thanks for the explanation |
Topic: PIC18F4550 configuring SPI |
andromeda92
Replies: 7
Views: 18375
|
Forum: General CCS C Discussion Posted: Tue Aug 01, 2017 5:14 am Subject: PIC18F4550 configuring SPI |
I have modified the code
setup_spi(SPI_MASTER | SPI_MODE_0| SPI_CLK_DIV_4 );
and modified crystal to
#use delay(crystal=16Mhz, clock=16Mhz)
I do not know why it does ... |
Topic: PIC18F4550 configuring SPI |
andromeda92
Replies: 7
Views: 18375
|
Forum: General CCS C Discussion Posted: Tue Aug 01, 2017 2:11 am Subject: PIC18F4550 configuring SPI |
I want to drive ili9341 320x240 with spi.
According to the datasheet, the ili9341 can be jumpered to select 12
different interfaces. These can be i2c, SPI, and many parallel interfaces.
Do you k ... |
Topic: PIC18F4550 configuring SPI |
andromeda92
Replies: 7
Views: 18375
|
Forum: General CCS C Discussion Posted: Mon Jul 31, 2017 7:06 pm Subject: PIC18F4550 configuring SPI |
Hi,
I have a pic18f4550 with crystal 16Mhz, version of compiler is 5.015.
I want to drive ili9341 320x240 with spi.
The code it was for mplab-x but i have adapted it for ccs.
How do i configur ... |
Topic: PIC18F4550 at 48Mhz |
andromeda92
Replies: 2
Views: 9592
|
Forum: General CCS C Discussion Posted: Mon Jul 24, 2017 12:08 pm Subject: PIC18F4550 at 48Mhz |
Thanks for your explication. |
Topic: PIC18F4550 at 48Mhz |
andromeda92
Replies: 2
Views: 9592
|
Forum: General CCS C Discussion Posted: Mon Jul 24, 2017 11:06 am Subject: PIC18F4550 at 48Mhz |
Hi,
How i configure #FUSES for 48Mhz ?
I have tested all possibility but it don't work
i have a crystal 16Mz
#FUSES HSPLL
#FUSES CPUDIV2
#FUSES PLL1
#use delay(clock=48Mhz)/ ... |
Topic: [RESOLVED]pic18f4550 and usart |
andromeda92
Replies: 7
Views: 19810
|
Forum: General CCS C Discussion Posted: Sun Jul 23, 2017 4:33 pm Subject: [RESOLVED]pic18f4550 and usart |
I confirm my keypad tactile is out. I have tested with a lcd backpack serial from Sparkfun. I can send information, the backpack works.
Thank you. |
Topic: [RESOLVED]pic18f4550 and usart |
andromeda92
Replies: 7
Views: 19810
|
Forum: General CCS C Discussion Posted: Sun Jul 23, 2017 2:10 pm Subject: [RESOLVED]pic18f4550 and usart |
I think the problem is from my keyboard tactile. I have connected GND, TX, VCC to an USB TTL, and the terminal receives nothing, the keyboard is out, I had not used it for a while. |
Topic: [RESOLVED]pic18f4550 and usart |
andromeda92
Replies: 7
Views: 19810
|
Forum: General CCS C Discussion Posted: Sun Jul 23, 2017 1:40 pm Subject: [RESOLVED]pic18f4550 and usart |
hi,
The cpu is working.
The routines from glcd (st7920) work very well, isn't that.
The keyboard is
#use delay(CRYSTAL=16MHz, CLOCK=16MHz)
and now when i connect usb rs232 cable t ... |
Topic: [RESOLVED]pic18f4550 and usart |
andromeda92
Replies: 7
Views: 19810
|
Forum: General CCS C Discussion Posted: Sun Jul 23, 2017 12:09 pm Subject: [RESOLVED]pic18f4550 and usart |
I have added these lines and errors disappear
but it don't work.
//****** define address *****//
#byte TXSTA = 0x98
#byte RCSTA = 0x18
#byte SPBRG = 0x99
#byte PIE1 = 0 ... |
Topic: [RESOLVED]pic18f4550 and usart |
andromeda92
Replies: 7
Views: 19810
|
Forum: General CCS C Discussion Posted: Sun Jul 23, 2017 10:38 am Subject: [RESOLVED]pic18f4550 and usart |
Hi,
I want to use usart with my pic that is connected to a tactile keypad with serial.
I connected TX from my keypad to PIN_C7, but CCS not recognize all register TXSTA, RCSTA, SPGRG, RCIF, ...
... |
|